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

    Adam

    05/23/2018, 6:47 PM
    So when I pass the {value: 2, text: "some text"} in as a variable I get the following error
  • a

    Adam

    05/23/2018, 6:48 PM
    : GraphQL error: Argument 'filter' expected type 'MemberFilter' but got: {occupation: $labour}. Reason: 'occupation' Field 'occupation' is not defined in the input type 'MemberFilter'.
  • a

    Adam

    05/23/2018, 6:48 PM
    Any ideas?
  • a

    Adam

    05/23/2018, 6:48 PM
    JSON.stringify(...) also does not work
  • a

    Adam

    05/23/2018, 6:49 PM
    query getWorkforce ( $labour: Json! ){ labour: _allMembersMeta(filter: {occupation: $labour}) { ... } }
  • a

    Adam

    05/23/2018, 6:50 PM
    const Workforce = graphql(GET_WORKFORCE_DATA, { name: 'getWorkforceData', options: { variables: { labour: {value: 2, text: "Labour"} } } })(workforce)
  • s

    Sam Hulick

    05/23/2018, 8:29 PM
    we keep getting this in our ECS logs when I try to do `prisma deploy`: "Warning: Management API authentication is disabled. To protect your management server you should provide one (not both) of the environment variables ". we definitely have
    MANAGEMENT_API_SECRET
    in the env. what would cause this?
  • h

    hez

    05/23/2018, 8:43 PM
    Is there a recommended approach to sharing environment variables between
    prisma.yml
    (i.e. with
    .env.prod
    ,
    .env.dev
    , etc) and the
    index.js
    file?
    p
    • 2
    • 1
  • h

    hez

    05/23/2018, 8:43 PM
    in this sort of setup: https://www.prisma.io/docs/tutorials/deploy-prisma-servers/aws-fargate-joofei3ahd#3.-deploy-a-prisma-service-to-the-new-server
  • h

    hez

    05/23/2018, 9:02 PM
    hmmm. Makefile to the rescue, I think.
  • r

    rwatts3

    05/23/2018, 11:12 PM
    Hello Everyone, Will prisma 1.9 support introspection queries for mysql databases ?
    n
    • 2
    • 3
  • g

    gabe.bravo

    05/24/2018, 1:36 AM
    hey everyone, kind of chasing my tail right now, and I was wondering if someone could lend a hand. I have basically built out my Apollo/React frontend and want to hook it into prisma/gql server/db. I've tried several different versions of the tutorials: https://www.prisma.io/docs/tutorials/setup-prisma/create-new-db/postgres-eiyov7erah/ https://www.prisma.io/docs/tutorials/build-graphql-servers/development/build-a-graphql-server-with-prisma-ohdaiyoo6c/ Which is fine and dandy, but I don't know if it gets me any closer to my goal. After doing those 2, I found this one about specifically setting up a frontend: https://www.prisma.io/docs/tutorials/connect-to-prisma-from-the-frontend-fbgaeyrou7 But it seems like some assumptions are made about what needs to happen first. More specifically, "The tutorial assumes that you already have a running Prisma service, so please make sure to have the endpoint of it available. If you're unsure about how you can get started with your own Prisma service, check one of these tutorials: Setup Prisma on a Demo server Setup Prisma with a new MySQL Database Setup Prisma with a new Postgres Database Setup Prisma by connecting your empty MySQL Database Setup Prisma by connecting your empty Postgres Database"
  • g

    gabe.bravo

    05/24/2018, 1:37 AM
    Again, I've done a few of these, but at this point, it seems like if I just setup a basic prisma init and do a deploy to create a service, I can just connect to it from the client. That being said, not sure how it would actually persist and save to a DB?
  • g

    gabe.bravo

    05/24/2018, 1:37 AM
    At this point Im not concerned with deployment, just trying to get something working
    j
    k
    • 3
    • 3
  • j

    Jim

    05/24/2018, 2:43 AM
    Has anyone else had Prisma cloud services stuck deploying / deleting? I have had this for a few days now.
  • s

    Sam Jackson

    05/24/2018, 3:33 AM
    For those who are interfacing with their Prisma backend through a web app with Vue or React — how are you deploying it? Especially if you’re on AWS, it seems like the options are S3 and ElasticBeanstalk and I’m curious about the differences.
    j
    • 2
    • 1
  • a

    AsPrO

    05/24/2018, 4:36 AM
    Hey, is it possible to generate the schema.graphql in a way where we don't have to write every possible Query one by one ?
  • t

    Till

    05/24/2018, 7:41 AM
    hmm in the current prisma cli 1.8 … ist it just me or are the boilerplates gone 😄?
    n
    n
    • 3
    • 89
  • n

    notrab

    05/24/2018, 8:03 AM
    Yeah they’re gone
  • c

    csamu

    05/24/2018, 9:13 AM
    Is there a practical limit on how many can be connected to Graphcool (SaaS) simultaneously, or queries per second?
  • c

    Cal

    05/24/2018, 10:27 AM
    I'm having issues with permissions, and now I'm getting an internal server error eu-west-1systemcjhke6dye1vuf0170a6r12irv
    • 1
    • 1
  • t

    Till

    05/24/2018, 10:50 AM
    Is there a way of implemting custom directives ?
  • h

    halborg

    05/24/2018, 11:39 AM
    So I’m trying to use the TS advanced template (https://github.com/graphql-boilerplates/typescript-graphql-server/tree/master/advanced), but I’m getting a TS warning from the get-go that I don’t know how to resolve:
    Copy code
    src/index.ts(5,34): error TS2345: Argument of type '{ typeDefs: string; resolvers: typeof "/.../src/...' is not assignable to parameter of type 'Props'.
      Types of property 'resolvers' are incompatible.
        Type 'typeof "/.../src/resolvers/index"' is not assignable to type 'IResolvers | undefined'.
          Type 'typeof "/.../src/resolvers/index"' is not assignable to type 'IResolvers'.
            Property 'default' is incompatible with index signature.
              Type '{ Query: { feed(parent: any, args: any, ctx: Context, info: any): Promise<Post[]>; drafts(parent:...' is not assignable to type 'GraphQLScalarType | (() => any) | IResolverObject'.
                Type '{ Query: { feed(parent: any, args: any, ctx: Context, info: any): Promise<Post[]>; drafts(parent:...' is not assignable to type 'IResolverObject'.
                  Property 'Query' is incompatible with index signature.
                    Type '{ feed(parent: any, args: any, ctx: Context, info: any): Promise<Post[]>; drafts(parent: any, arg...' is not assignable to type 'GraphQLFieldResolver<any, any, { [argName: string]: any; }> | IResolverOptions'.
                      Type '{ feed(parent: any, args: any, ctx: Context, info: any): Promise<Post[]>; drafts(parent: any, arg...' has no properties in common with type 'IResolverOptions'.
    Can anyone tell me how fix that?
    n
    n
    t
    • 4
    • 21
  • s

    siyfion

    05/24/2018, 12:21 PM
    How do I use a SQL Client to connect to the MySQL docker container running locally on my development machine? I’ve tried
    localhost:3306
    to no avail, so I assume that the container may not be exposing any ports to connect too?
  • l

    lewisblackwood

    05/24/2018, 12:34 PM
    I'm using
    prisma-bindings
    , and finding that if I add keys on my subfields, sometimes the result will be shown as null, even though nodes exist. Does anyone know why that would be? Here's an example:
    Copy code
    query {
      currentUser {
        organisation {
          usersWithInvite: users(
            where: { invite: { id_not: null } }
          ) {
            id
          }
        }
      }
    }
    returns:
    Copy code
    {
      "data": {
        "currentUser": {
          "organisation": {
            "usersWithInvite": null
          }
        }
      }
    }
    If I add another
    users
    subselection, the whole query works as expected:
    Copy code
    query {
      currentUser {
        organisation {
          users {
            id
          }
          usersWithInvite: users(
            where: { invite: { id_not: null } }
          ) {
            id
          }
        }
      }
    }
    returns:
    Copy code
    {
      "data": {
        "currentUser": {
          "organisation": {
            "users": [
              ...manyUsers
            ],
            "usersWithInvite": [
                ...manyUsers
            ]
          }
        }
      }
    }
    n
    t
    • 3
    • 9
  • h

    hamdi

    05/24/2018, 1:33 PM
    hi friends how i can make this drawer slip i am using react js component
  • j

    jjaybrown98

    05/24/2018, 1:49 PM
    anyone seen this error before in prisma 1.8
    Client does not support authentication protocol requested by server. Consider upgrading MariaDB client. plugin was = caching_sha2_password
  • n

    nilan

    05/24/2018, 2:03 PM
    Please consider using the Forum instead to discuss questions involving code snippets.
    👍 2
  • p

    Paddy

    05/24/2018, 2:07 PM
    getting an error when trying to log into the forum and so can't post
    n
    • 2
    • 1
  • t

    Till

    05/24/2018, 2:38 PM
    How can i specify what fields i get from a
    Copy code
    ctx.db.query...
    , i extended my User and want to add something from that record to the jwt
    s
    n
    • 3
    • 4
1...394041...637Latest