https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# orm-help
  • m

    m.gu

    06/02/2018, 11:49 PM
    Anyone with experience deploying a prisma server have pricing estimates they'd share? I'm looking for cost per request
    j
    • 2
    • 1
  • d

    Dukuo

    06/03/2018, 2:04 AM
    Well, i'm having an issue with
    graphql codegen
    .. It says is generating the code to a file in
    src\generated\prisma.ts
    , but is not actually doing it.. Is there any common cause of this ?
  • d

    Dukuo

    06/03/2018, 3:33 AM
    (note: i'm using windows and apparently that's the issue, it works with
    graphql prepare
    but the generated files do not go with Typescript validation, Linux works just fine)
    l
    n
    • 3
    • 7
  • v

    Vdrizzle

    06/03/2018, 4:14 AM
    How can I make prisma deploy to a specific db right now it deploys to default@default
    n
    • 2
    • 2
  • a

    Al

    06/03/2018, 2:46 PM
    Hi all, I have a question: when I do prisma init and the select use existing database ( in a local machine in this case), with all parameters. What can cause error like "could not connect to database. Connection terminated unexpectedly"? I can access to the database via phpmyadmin or workbench for example.
    n
    • 2
    • 2
  • g

    gaelgriffon

    06/03/2018, 2:57 PM
    I have this error when I try to disconnect a node that is not connected (= null). "The relationship EqLogicOnEqReal has no node for the model EqLogic with the value 'xxxxx' for the field 'id' connected to a node for the model EqReal on your mutation path. ' The form on the frontend sends to the application layer backend (graphql-yoga) includes all the fields, for example: {name: "Blablabla", eqReal: null} eqReal === null ? {disconnect: true} : {connect: {id: eqReal}} Is there a way to not have the error? other than to check before with a query that the realation is already disconnected? Thank you!
  • j

    Jscott388

    06/03/2018, 6:18 PM
    So I am trying to get around the Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126... What can I do? Using Enums help?
    n
    • 2
    • 1
  • r

    ryannealmes

    06/03/2018, 7:39 PM
    is there a way to set the name of a database in docker-compose file used in prisma?
    a
    • 2
    • 1
  • m

    mianrafay

    06/03/2018, 7:43 PM
    I am following tutorial on youtube named HowToGraphQL (React & Relay) and now I am stuck on the third part. The error is in the screen. Any help is welcome. Thanks
  • c

    codebeast

    06/03/2018, 11:01 PM
    Hi. Has anyone encountered this error:
    Copy code
    Error: Error writing result to store for query:
     query AllLinksQuery($first: Int, $skip: Int, $orderBy: LinkOrderByInput) {
      feed(first: $first, skip: $skip, orderBy: $orderBy) {
        count
        links {
          id
          url
          description
          createdAt
          postedBy {
            id
            name
            __typename
          }
          votes {
            id
            user {
              id
              __typename
            }
            __typename
          }
          __typename
        }
        __typename
      }
    }
    
    *Cannot read property '__typename' of undefined*
    Seems to be coming from this line:
    Copy code
    store.writeQuery({
                  query: ALL_LINKS_QUERY,
                  variables: {
                    first: 5,
                    skip: 0,
                    orderBy: 'createdAt_DESC'
                  },
                  data
                })
  • g

    Gomah

    06/03/2018, 11:27 PM
    Probably means your query is not in your cache store yet
  • s

    sivajag

    06/04/2018, 4:34 AM
    Any good example on how to use link state with react native for many to many relationships
  • h

    halborg

    06/04/2018, 7:13 AM
    Anyone online that can help me clear up why my nested objects in an upsert won’t work? https://www.prisma.io/forum/t/upsert-of-nested-objects-doesnt-work/3667
    w
    n
    • 3
    • 4
  • s

    siyfion

    06/04/2018, 8:27 AM
    Is there an easy way to upgrade a Prisma server running in AWS Fargate?
    n
    • 2
    • 1
  • j

    James Bellamy

    06/04/2018, 9:01 AM
    Anyone else seeing this issue? https://github.com/prismagraphql/prisma/issues/2566 “Docker Log: Could not find relatedModel for field [“field-name”] on model [None]”
  • c

    codebeast

    06/04/2018, 10:56 AM
    Copy code
    updateQuery: (previous, { subscriptionData }) => {
                  console.log(subscriptionData)
                  console.log(previous, subscriptionData)
                  const newAllLinks = [
                    subscriptionData.data.newLink.node,
                    ...previous.feed.links
                  ]
                  const result = {
                    ...previous,
                    feed: {
                      links: newAllLinks
                    }
                  }
                  return result
                }
    I keep getting:
    Copy code
    errorHandling.js?ace3:7 TypeError: Cannot read property 'node' of null
    n
    • 2
    • 5
  • r

    rein

    06/04/2018, 1:40 PM
    So am I reading this right? Github has been acquired by Microsoft?
  • h

    hvdklauw

    06/04/2018, 1:47 PM
    Yes
  • h

    hvdklauw

    06/04/2018, 1:48 PM
    Broke GitLab, all the people migrating means merge requests and pipelines aren’t updating/working currently 😞
    w
    • 2
    • 1
  • b

    Ben Wheeler

    06/04/2018, 2:27 PM
    Quick question - how you can reduce or turn off the console logging for the graphql-yoga server? Really don't need every query logged...Is this in apollo server or express?
    s
    • 2
    • 4
  • d

    dsoraluz

    06/04/2018, 2:40 PM
    Has anyone experienced the following error when attempting to make a subscription using Apollo Client in a react application?
    Copy code
    Unhandled GraphQL subscription error TypeError: this.subscriptionClient.request is not a function
    The prop that is being used to make the subscription call has been wrapped in the graphql container:
    Copy code
    this.subscribeToAgents(fetchInitialData);
    .
    .
    .
        subscribeToAgents = fetchInitialData => {
        fetchInitialData.subscribeToMore({
          document: gql`
        subscription{
            Agent{
                mutation
                node {
                    id
                    name
                    status
                }
            }
        }
    `;,
          updateQuery: (previous, { subscriptionData } ) => {
            const { updateAgent } = this.props;
            updateAgent(subscriptionData.Agent.node);
          },
        });
      };
    .
    .
    .
        graphql(FetchInitialData, {
        name: 'fetchInitialData',
        options: ({ contentStore: { start, end } }) => ({ variables: { start, end } }),
      }),
    Note: the Apollo Client has been created to use a hybrid link that uses the split function just like the docs lay out and http requests are completed fine when made.
  • b

    blackxored

    06/04/2018, 4:17 PM
    Is anyone working on the Google Cloud Firestore connector at this moment? Would love to help
  • v

    virtualirfan

    06/04/2018, 5:41 PM
    Does a Prisma local server work in offline mode (i.e. no internet connectivity)? I'm trying to debug why my test app doesn't work when offline (the only data source for it is via GraphQL provided by prisma).
    n
    a
    • 3
    • 4
  • s

    sajmil

    06/04/2018, 5:57 PM
    Anyone having a lot of 504 and timeouts with gtaphcool right now?
  • h

    hueezer

    06/04/2018, 9:00 PM
    I've upgraded prisma-cli and prisma to 1.8.3 and can no longer deploy, getting this error:
    Copy code
    ERROR: GraphQL Error (Code: 405)
    
    {
      "error": "HTTP method not allowed, supported methods: GET",
      "status": 405
    }
    • 1
    • 3
  • h

    hamdi

    06/04/2018, 11:12 PM
    hi friends is possible to make Appllo like a controller in sequence diagram ?
  • c

    chameleon

    06/05/2018, 12:08 AM
    I'm having a problem with a permissions query in graph.cool. If a relation is not defined then the permission query fails and causes the transaction to abort rather then moving to the next permission query. Am I missing something?
  • c

    chameleon

    06/05/2018, 12:09 AM
    "Permission Query is invalid. Could not be executed. Error Message: Query does not pass validation. Violations:↵↵Variable '$input_childId' is not defined. (line 5, column 12):↵ id:$input_childId↵ ^↵ (line 1, column 1):↵query ($user_id: ID) {↵^" path : ["createInformation"] requestId : "eu-west-1simplecji0wxb7xms7t0185qf4o741g"
  • s

    Sam Jackson

    06/05/2018, 12:26 AM
    I just ran
    prisma deploy
    but my generated
    prisma.graphql
    file doesn't seem to be updating. any thoughts on why that might be?
    l
    n
    • 3
    • 10
  • s

    Sam Jackson

    06/05/2018, 1:26 AM
    Is it possible to use an
    AND
    in the
    where
    clause of an upsert operation?
    n
    • 2
    • 4
1...484950...637Latest