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

    MojoJojo

    10/25/2018, 3:38 PM
    Anyone have any idea why this filter might not be working?
  • m

    MojoJojo

    10/25/2018, 3:39 PM
    The error message I get is
    Copy code
    "errors": [
          {
            "message": "Unknown argument \"where\" on field \"features\" of type \"StockItem\".",
  • m

    MojoJojo

    10/25/2018, 3:40 PM
    I realise that the where needs to be an arguement on features but I tried that to no avail.
  • p

    patrickdevivo

    10/25/2018, 3:48 PM
    im using
    prisma generate
    to generate a golang prisma client, but it seems to be generating invalid go code, in particular:
    Copy code
    too many arguments in call to prisma.New
            have (string, string, []graphql.ClientOption...)
            want (string, ...graphql.ClientOption)
  • p

    patrickdevivo

    10/25/2018, 3:49 PM
    could that be a version mismatch error? i know there were some updates released
  • p

    patrickdevivo

    10/25/2018, 3:49 PM
    or potentially a bug in the golang generation?
  • i

    ian izaguirre

    10/25/2018, 7:44 PM
    hi guys not sure why im getting this playground error https://www.screencast.com/t/oxJZmgDH
    l
    j
    h
    • 4
    • 34
  • t

    tim

    10/25/2018, 9:38 PM
    trying to get a figure out if my relationships are correct here, and trying to think of a name for the one currently named "Song??":
    Copy code
    type Song @model {
      id: ID! @isUnique
      name: String!
      performances: [SongPerformance!]! @relation(name: "Song??")
    }
    
    type SongPerformance @model {
      id: ID! @isUnique
      song: Song! @relation(name: "Song??")
      concerts: [SongPerformance!]! @relation(name: "SongPerformances")
    }
    
    type Concert @model {
      id: ID! @isUnique
      setlist: [SongPerformance!]! @relation(name: "SongPerformances")
    }
    basically the models are a song, a concert, and songPerformance which is an instance of the song being played at a concert. Anyone have a good name for that? And do the relationships look correct?
  • z

    zonofthor

    10/25/2018, 9:57 PM
    can anyone see why
    expiresAt
    filter is not working - it gives me empty [] for entries?
    l
    j
    +2
    • 5
    • 20
  • n

    nbjooqla

    10/25/2018, 10:01 PM
    why https://www.prisma.io responds too long?
  • n

    nbjooqla

    10/25/2018, 10:01 PM
    i mean the whole site
    b
    • 2
    • 1
  • j

    JohnC

    10/25/2018, 11:38 PM
    I’m starting to research how I should write a testing suite on my Prisma server. I am currently trying to do it server side without a whole lot of luck so far, and I was wondering if anyone had some helpful advice, links, or documentation I can read about testing a Prisma server?
  • t

    trevor

    10/26/2018, 3:42 AM
    Hi I'm new to Prisma, how do I get Management API secret?
  • t

    trevor

    10/26/2018, 3:54 AM
    https://www.prisma.io/docs/prisma-graphql-api/reference/authentication-ghd4/#service-secret OH it is me in charge of specifying it okay
    šŸ‘ 1
  • f

    Fran Dios

    10/26/2018, 5:27 AM
    I’m getting this error in my Prisma 1.19 server log:
    [SubscriptionSessionActor] Received unknown message: com.prisma.subscriptions.protocol.SubscriptionProtocolV07$Requests$GqlConnectionTerminate$@7313ce90
    Any idea why?
    n
    • 2
    • 12
  • t

    trevor

    10/26/2018, 6:53 AM
    Guys is it possible to use Google Cloud MySQL instance with Prisma?.. because docs says PostgreSQL is only dbms supported by Prisma if using existing database
    n
    • 2
    • 4
  • i

    Industrial

    10/26/2018, 10:04 AM
    Hi. The
    upsertThing
    mutation contains 3 aguments,
    where
    ,
    create
    and
    update
    .
  • i

    Industrial

    10/26/2018, 10:05 AM
    I don't understand this; If I want to insert something I do not have an ID and the
    where
    clause only contains an
    id
    property. How can I use the same query for inserting and for updating data?
    h
    a
    • 3
    • 27
  • n

    nbjooqla

    10/26/2018, 10:27 AM
    pls help - getting error in safari, in chrome everything is ok, i use graphql-yoga and apollo client with react Fetch API cannot load http://localhost:portnumber/ due to access control checks. this - error seemed in safari,. also not working on mobile device, maybe same error. How can i see logs on mobile android browser?
  • j

    jt9001

    10/26/2018, 11:08 AM
    Hi all, we have an interesting problem w/ our apollo react site - whenever I first open the page in Chrome (other browsers too) it does not seem to fetch latest database (graphcool) data. If I hit refresh, it will load the latest. Is this an easy fix? It's a pretty bad issue for a rolling content site. Thanks in advance for help! tagging @be4r
    n
    j
    • 3
    • 6
  • t

    TauriT

    10/26/2018, 1:09 PM
    Getting " Syntax Error: Expected Name, found }" when running "prisma deploy" - all github issues closed as resolved, but its not - using latest versions - can fix when adding scalar field as mentioned in those issues
    n
    • 2
    • 2
  • s

    Slackbot

    10/26/2018, 1:45 PM
    This message was deleted.
    n
    l
    • 3
    • 4
  • n

    Nick

    10/26/2018, 2:16 PM
    The generated prisma file it would be nice if it came with JSDoc
  • i

    Industrial

    10/26/2018, 3:08 PM
    https://github.com/prisma/prisma/issues/3384 šŸ™‚
  • s

    Sam

    10/26/2018, 5:01 PM
    I am trying to use graphql-middleware and had a question. The npm readme directed me here. Is this the correct forum?
  • s

    Sam

    10/26/2018, 5:07 PM
    I am attempting to utilize fragment, but it appears that the value passed in the fragment property has no effect on whether the resolver is called. It is always called not matter what the value is.
    Copy code
    const fragmentMiddleware = {
      Query: {
        fragment: 'fragmentsdfgsdg author on Booksdfgsdfg { authorsfdgsdgfsdg }',
        resolve: async (resolve, parent, args, context, info) => {
          console.log(info.fieldName);
          return await resolve(parent, args, context, info);
        },
      },
    };
    It would be preferable if the resolver was never called since the fragment spec is junk.
  • s

    Sam

    10/26/2018, 5:30 PM
    The context being passed into a graphql-middleware resolver does not have a request property. It only has a _extensionStack property. How am I supposed to get at the request headers from a middleware?
    • 1
    • 1
  • n

    Naka

    10/26/2018, 7:07 PM
    Hi, I am having some trouble with my Graphql server. I want to use some types created by Prisma abstraction but I don't want to expose all the Prisma API to the client. Is there a way to import prisma models in my schema defined in the graphql server?
    l
    f
    • 3
    • 26
  • s

    Sufyan

    10/26/2018, 9:36 PM
    Hi I am having problem with prisma deploy. when I deploy no tables are created in me mentioned schema . I was using prism 1.13.7. On accessing it was giving me the exception that database default$default doesn't exist. now moved to 1.16.4. Still no tables created but when I execute query from playground instead of default.table_name does'nt exist, It gives an error that public.table_name doesn'r exist
  • s

    Sufyan

    10/26/2018, 9:36 PM
    Any help regarding this would be highly appreciated
1...141142143...637Latest