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

    Zak

    04/16/2019, 4:25 PM
    What could be the issue?
  • b

    Bjoern

    04/16/2019, 5:56 PM
    does anyone use GeoJson with prisma? How?
  • s

    s1nc4p

    04/16/2019, 8:04 PM
    Hi guys, generated prisma client gets data over websocket but its slow for some kind of scenarios. Is there any alternative to get data from prisma server?
  • c

    captaindaylight

    04/16/2019, 8:05 PM
    has anyone set up with WebStorm before? I’m getting errors for directives and types even though I’m using the JS GraphQL plugin
    h
    • 2
    • 2
  • s

    Sandeep Goyal

    04/16/2019, 8:47 PM
    Hey guys, is there a way to make changes to Prisma and deploy our own version?
  • h

    henrique

    04/16/2019, 10:00 PM
    Howdy 👋 , what is the opposite of
    _some
    ? e.g. this query returns all my projects
    Copy code
    await context.prisma.projects({
      where: {
        owners_some: { id: userId }
      }
    })
    I want the opposite now to return the projects I’m not associated it. I tried
    owners_not
    but with no luck. Thoughts?
    c
    • 2
    • 7
  • c

    CCBCodeMonkey

    04/17/2019, 12:57 AM
    is there a need to sanitize input to stuff like
    where: {id_contains: "blah"}
    to prisma, say for SQL injections?
  • c

    CCBCodeMonkey

    04/17/2019, 12:58 AM
    I would hope everything is scrubbed / sanitized on prisma's side
  • s

    sapkra

    04/17/2019, 3:28 AM
    Is someone using prisma-nexus with subscriptions? I have the problem that I want to return the full subscription including the
    mutation
    and not just the
    node
    . When I try it I'm just getting a type error.
    Copy code
    Types of property 'subscribe' are incompatible.
      Type '(parent: object, args: any, ctx: Context) => Promise<AsyncIterator<UserSubscriptionPayload>>' is not assignable to type '(root: object, args: any, ctx: Context, info: GraphQLResolveInfo) => AsyncIterator<any>'.
        Property 'next' is missing in type 'Promise<AsyncIterator<UserSubscriptionPayload>>' but required in type 'AsyncIterator<any>'.
  • n

    Nitin Sharma

    04/17/2019, 5:30 AM
    Hey guys, is there a way to make changes to Prisma and deploy our own version?
    m
    • 2
    • 1
  • c

    CCBCodeMonkey

    04/17/2019, 7:45 AM
    I am getting an error with prisma, I believe because I am hitting the query batch limit...
  • c

    CCBCodeMonkey

    04/17/2019, 7:45 AM
    is there any way around the batch limit, like can I tell it not to batch somehow?
  • p

    prabhat kumar sharma

    04/17/2019, 8:19 AM
    when i am trying to run "sudo yarn prisma deploy" and selecting demo server it showing me this error.
  • p

    prabhat kumar sharma

    04/17/2019, 8:19 AM
    ▸ Exited with code 3
  • p

    prabhat kumar sharma

    04/17/2019, 8:20 AM
    -.txt
  • p

    prabhat kumar sharma

    04/17/2019, 8:21 AM
    showing this in terminal so that's why there is no endpoint in prisma.yml so in playground or running query it showing"only absoulte url Supported".
  • p

    prabhat kumar sharma

    04/17/2019, 8:21 AM
    please help me out it's very urgent for me.
  • r

    rdc

    04/17/2019, 9:12 AM
    Is there a better way to write this resolver? ->
    Copy code
    const Admin = {
    	profilePic:{
    		fragment: 'fragment userId on Admin { id }',
    		async resolve(parent, args, { prisma }, info) {		
    			const s3Object = await prisma.query.s3Objects({
    				where:{
    					admin:{
    						id: parent.id
    					}
    				}
    			});
    			return s3Object.length > 0 ?
    				{
    					bucket: s3Object[0].bucket,
    					region: s3Object[0].region,
    					key: s3Object[0].key
    				} :
    				{
    					bucket: null,
    					region: null,
    					key: null
    				};		            
    		}
    	}
    };
  • r

    rdc

    04/17/2019, 10:27 AM
    is there a way to see the
    resolvers
    that prisma server created?
  • d

    Dario Villanueva

    04/17/2019, 3:39 PM
    Im currently doing the GraphQL node.js demo tutorial, and I'm unable to complete it - when I try to update my data model to include
    Vote
    , I get an error when trying to run
    prisma deploy
    Copy code
    I  ~/w/hackernews-node  prisma deploy
    Deploying service `hackernews-node` to stage `dev` to server `prisma-eu1` 208ms
    
    Errors:
    
      Link
        ✖ One field of the type `Link` must be marked as the id field with the `@id` directive.
    
      User
        ✖ One field of the type `User` must be marked as the id field with the `@id` directive.
    
      Vote
        ✖ One field of the type `Vote` must be marked as the id field with the `@id` directive.
    
    Deployment canceled. Please fix the above errors to continue deploying.
    Read more about deployment errors here: <https://bit.ly/prisma-force-flag>
    ✅ 2
    n
    • 2
    • 5
  • d

    Dario Villanueva

    04/17/2019, 3:40 PM
    is there a newbies channel where I can ask this without boring the pros? 😅
  • c

    cedric

    04/17/2019, 4:21 PM
    hi all, i'm looking to run prisma as a docker container in ecs but i'm lacking clarity on what happens if the container restarts/moves in terms of state retention of schema deploys. for stateful services, like postgres, there's generally a volume mount in
    /var/lib/postgresql/data
    which you can map to an external filesystem. does prisma have something similar?
    j
    • 2
    • 10
  • m

    Mahmoud El Kotoury

    04/17/2019, 4:34 PM
    hi i am trying to query id from user , the select statement is always selecting all and not id or the specified field , can any one help
    c
    • 2
    • 14
  • z

    Zak

    04/17/2019, 5:18 PM
    Hi everyone? Who has done aggregates in queries? Am finding it hard to return aggregated values
  • z

    Zak

    04/17/2019, 5:22 PM
    Would like to return an aggregate for the no. of users and the no. of clients
    -.php
    c
    s
    • 3
    • 5
  • m

    Mahmoud El Kotoury

    04/17/2019, 5:31 PM
    hello guys,
    Copy code
    query {
      user(id:"%USERID%") { 
          email
      }
    }
    This prisma graphql query is translated to this mysql query , I got from the log
  • f

    Francis John

    04/17/2019, 6:01 PM
    👋 I seem to have gotten my local postgres database into a slightly bad state. I am seeing an error when bringing up my postgres container
    ERROR:  database "prisma" already exists
    . Any ideas on how to get around this?
    c
    • 2
    • 3
  • j

    jdoyle112

    04/17/2019, 6:57 PM
    Getting a weird deploy error. One field of the type
    User
    must be marked as the id field with the
    @id
    directive.
    f
    • 2
    • 3
  • j

    jdoyle112

    04/17/2019, 6:57 PM
    I was able to previously deploy this service now I can’t anymore and it throws this error. Any ideas?
  • c

    cedric

    04/17/2019, 7:01 PM
    hi all, i've got a (probably exotic) issue when attempting to use
    prisma-nexus
    against two separate prisma services. for context, we need to talk to two database schemas, so due to this issue we've created two separate prisma services: https://github.com/prisma/prisma/issues/1622. this results in two prisma.ymls which are each generating their own
    nexus-prisma.ts
    . however, each file contains the following code:
    Copy code
    declare global {
      interface NexusPrismaGen extends NexusPrismaTypes {}
    }
    bc this is in the global namespace, it results in one set of nexus-generated types overriding the other. i'm uncertain of the motivation for using the global namespace here, but i'd be super interested if anyone has any suggestions for getting around this (or if it's a bug that should be filed). we really like working with prisma but i feel like this multi-schema thing is resulting in workarounds layered on workarounds. /cc @weakky @Nick Drane
    d
    w
    • 3
    • 2
1...255256257...637Latest