https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# prisma-whats-new
  • d

    davidyoung

    03/05/2018, 11:36 PM
    Quick question if anyone can help me I have a model referencing another model of the same type, declared like this:
    Copy code
    type Plan @model {
    
    ...
    previousPlan: Plan @relation(name: "PreviousPlan")
    }
    When I try to run a create mutation adding previousPlanId it says I'm trying to reference a node that doesn't exist, even though it does. Is that relation right? Not sure what to do when it's a one-to-one relation of the same type.
    Copy code
    "message": "You are referencing a node that does not exist. Please check your mutation to make sure you are only creating edges between existing nodes. Id if available: cjeeupwo2j3k30195shnsex1h",
          "requestId": "eu-west-1:simple:cjeev4hwtl1g50115l8rdpa3d"
  • d

    davidyoung

    03/05/2018, 11:39 PM
    nevermind, did something stupid
  • d

    danscan

    03/06/2018, 1:25 AM
    Hey all, I'm hoping someone can help me with a major blocker I'm hitting with
    prisma import
    ... Even after deleting the
    state.json
    file in my NDF import dir, running
    prisma reset
    ,
    prisma local nuke
    , and even manually deleting the db persistence docker volume, I'm still seeing:
    Copy code
    Skipping file .../ndf_output/nodes/0000.json (already imported)
    
    Skipping file .../ndf_output/lists/0000.json (already imported)
    
    Skipping file .../ndf_output/relations/0000.json (already imported)
    n
    • 2
    • 3
  • d

    danscan

    03/06/2018, 1:26 AM
    Does anyone know of a reliable way to really nuke this state? I really need to import these files (and they have not already been imported).
  • c

    ckelley

    03/06/2018, 1:32 AM
    Hey all, trying to deploy Prisma to AWS ECS (Fargate) and getting this error on boot:
    Listening for transport dt_socket at address: 8000
    Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: e447092d9a96: e447092d9a96: System error
    Anyone know what would trigger this? I've tried setting the
    SCHEMA_MANAGER_ENDPOINT
    and similar values to use hostname
    localhost
    and
    127.0.0.1
  • p

    Peter Tan

    03/06/2018, 2:26 AM
    Hi Everyone, I just started the www.howtographql.com and I'm on the yarn and I'm on the part where I'm deploying on prisma. I'm running into a blocker and my server is saying "Error: Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory." Has anyone ran into this problem?
  • a

    Antonio

    03/06/2018, 8:02 AM
    Hi everyone!
  • a

    Antonio

    03/06/2018, 8:03 AM
    I have a newbie question. I am building an app with react native and I was using firebase, I'd like to switch to graphcool but (sorry my ignorance I am a front end not backend developer) is graphcool like a real database? Can I use real time like with firebase? (I have a chat and remote push notifications to set up)
    k
    • 2
    • 4
  • a

    Antonio

    03/06/2018, 8:03 AM
    Sorry if the question is silly, but I still don't get if graphcool can be used like a real database (store users, do queries etc)
  • a

    Antonio

    03/06/2018, 8:04 AM
    I guess I have a lot to learn πŸ™‚
  • v

    Victor

    03/06/2018, 8:13 AM
    Hey @Antonio, yes you can setup a chat with push notifications, prisma is not purely a database, it is like an ORM. You have to have a mysql database for prisma to connect to it, or use public cloud.
  • v

    Victor

    03/06/2018, 8:13 AM
    I have currently a chat app on graphcoool
    πŸ‘ 1
  • v

    Victor

    03/06/2018, 8:13 AM
    very simple but it works well with sub
  • a

    Antonio

    03/06/2018, 8:14 AM
    so if I use the cloud from graph.cool I can basically use it as a database right?
  • v

    Victor

    03/06/2018, 8:15 AM
    yes
    a
    k
    • 3
    • 27
  • d

    denish

    03/06/2018, 8:37 AM
    Hi Everyone, need help on apollo-client to authentication. Issue : automatic set header as 'text/plain' in content-type using 'createNetworkInterface' from 'apollo-client'
  • d

    denish

    03/06/2018, 8:37 AM
    anyone can help on this ?
  • v

    Victor

    03/06/2018, 8:40 AM
    @denish you seem to refer to apollo 1 here, are you sure this is the version you want to use ?
  • d

    denish

    03/06/2018, 8:41 AM
    I am using version "apollo-client": "^1.1.1",
  • v

    Victor

    03/06/2018, 8:41 AM
    this is a very old one
  • d

    denish

    03/06/2018, 8:41 AM
    i have also tried with the latest version. in that case method not set properly.
  • d

    denish

    03/06/2018, 8:42 AM
    method :"OPTIONS"
  • v

    Victor

    03/06/2018, 8:42 AM
    This is really what you should follow : https://www.apollographql.com/docs/react/recipes/authentication.html#Header
    d
    • 2
    • 15
  • d

    denish

    03/06/2018, 8:44 AM
    in that case, uri not set as we define in
    Copy code
    const httpLink = createHttpLink({
      uri: '/graphql',
    });
    my graph uri on different server/url
    v
    • 2
    • 1
  • k

    Kyle Gammon

    03/06/2018, 8:45 AM
    Has anyone had an issue where the Functions menu on the graphcool console is stuck in a loading state?
  • f

    fabien0102

    03/06/2018, 9:13 AM
    Hello everybody! I'm currently adding subscriptions into my app (following this tutorial https://www.apollographql.com/docs/react/features/subscriptions.html#subscriptions-client) with a graphql-yoga as backend. Just to know if I can avoid this
    split
    and a little bit complexity (auth + 2 links ^^) or if it's the only way for instant. Thanks πŸ™‚
  • v

    Victor

    03/06/2018, 9:14 AM
    No you cannot
    f
    • 2
    • 6
  • h

    huv1k

    03/06/2018, 9:16 AM
    Guys please try to follow chat guidelines πŸ™‚ ty πŸ’š
    v
    • 2
    • 1
  • s

    schickling

    03/06/2018, 10:27 AM
    Hi @rstankov! Great to have you here next to @NotRStankov πŸ˜„
    πŸ™€ 1
  • r

    rstankov

    03/06/2018, 10:40 AM
    πŸ˜„
1...597598599...637Latest