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

    Marvin Jude

    12/25/2018, 2:42 PM
    Please can someone tell me what i can do with Prisma?
    a
    • 2
    • 4
  • i

    impowski

    12/25/2018, 8:24 PM
    Is there any good example on how to implement cursor based pagination with Prisma?
  • n

    Nick

    12/25/2018, 9:07 PM
    Anyone here had experience using facebook relay instead of apollo. In the past I have only worked with apollo. I just recently picked up gatsby.js the data fetching is so fast basically it runs graphql in build time. Its crazy fast literally no loading state at all, that was always something that bothered me using apollo. It took so long for the data to appear on screen whereas with gatsby.js the view-layer and the data-layer is one-to-one kinda reminds me of the old mvc pattern. Important if going to build any data driven application. I wonder if graphql-relay can offer same speed and performance?
    h
    • 2
    • 5
  • l

    Luis Acerv

    12/25/2018, 9:08 PM
    Hello, I am trying to implement
    prisma graphql authentication adapter
    , Anyone knows an example using
    prisma init
    ?
  • p

    pllumh

    12/25/2018, 10:11 PM
    Hello. How do I access
    headers
    or
    connectionParams
    in subscriptions in graphql bindings... My code in Apollo:
    Copy code
    wsLink.subscriptionClient.use([{
      async applyMiddleware(options, next) {
        // get the authentication token from local storage if it exists
        const token = cookie.load('access_token');
    
        options.connectionParams = { 
          authorization: token ? `Bearer ${token}` : "",
        };
        next();
      },
    }]);
    
    const authLink = setContext((_, { headers }) => {
      // get the authentication token from local storage if it exists
      const token = cookie.load('access_token');
      // return the headers to the context so httpLink can read them
      return {
        headers: {
          ...headers,
          authorization: token ? `Bearer ${token}` : "",
        }
      }
    });
  • i

    impowski

    12/25/2018, 10:16 PM
    That helped me: https://www.apollographql.com/docs/apollo-server/features/subscriptions.html#Authentication-Over-WebSocket
  • x

    xiaoqf10

    12/26/2018, 3:30 AM
    Anyone can answer my question above? ( graphql-import can not find "prisma.graphql" file in now.( I use now2.0 @now/node builder) )
  • m

    Marvin Jude

    12/26/2018, 12:20 PM
    e.g i have used Apollo server along with Mongoose to fetch data in the resolvers, where do you think Primsa can come in to make things easier
    h
    • 2
    • 1
  • w

    Will

    12/26/2018, 7:13 PM
    Hi Why would I use apollo client over something like generated prisma client?
    h
    • 2
    • 1
  • a

    Andres Montoya

    12/26/2018, 10:40 PM
    Hi, why graphql-yoga does not migrate to Apollo server 2 and graphql-upload?
    h
    • 2
    • 1
  • i

    ian izaguirre

    12/26/2018, 10:46 PM
    I my Schema.Graphql how can I have in my Query object
    items: [Item]!
    AND
    items(where: ItemWhereUniqueInput!): [Item]!
    ?
    l
    • 2
    • 1
  • s

    sapkra

    12/27/2018, 12:40 AM
    Are there any plans to review some pull request. I count 71 right now... 😳
    h
    • 2
    • 2
  • a

    Andres Montoya

    12/27/2018, 5:09 AM
    Hi, I have one question.... I want to add a enum type in the graphql schema, like this: enum ENUMCivilStatus { SOLTERO(A) CASADO(A) SEPARADO(A)/DIVORCIADO(A) VIUDO(A) } But does not accept characters, so I tried enum ENUMCivilStatus { "SOLTERO(A)" "CASADO(A)" "SEPARADO(A)/DIVORCIADO(A)" "VIUDO(A)" } But it did not work... Some one know any alternative?
    h
    • 2
    • 1
  • x

    xiaoqf10

    12/27/2018, 7:05 AM
    Can I filter by createdAt matching a Time? (ignore the date)
    h
    • 2
    • 4
  • l

    Lucas

    12/27/2018, 9:38 AM
    the tutorial is wrong https://www.howtographql.com/react-apollo/6-more-mutations-and-updating-the-store/ we are not defining linksToRender
  • x

    xiaoqf10

    12/27/2018, 11:04 AM
    graphqlgen is too slow... I can I improve this?
    d
    • 2
    • 2
  • t

    Tiago Correia

    12/27/2018, 12:42 PM
    does anyone know if its possible to use prisma import in a way that it generates the id's? atm im importing a json file without id's and it trhows an error
    h
    • 2
    • 16
  • d

    David Casier

    12/27/2018, 1:41 PM
    Hello everyone, really nice, Prisma ! 🙂
  • v

    Venelin

    12/27/2018, 2:06 PM
    Hi all, I use graphql-import to import generated schema by graphqlgen. I want to add some fields to the imported types. Is there a way? I couldn't find anything on the subject
    h
    • 2
    • 25
  • n

    Novalis

    12/27/2018, 2:09 PM
    Hey there, got a question. As I know graphql and prisma are or should be database agnostic. However, I can't figure out a way to connect a prisma service with my normal MySQL Database, running on a normal Apache Webserver. Is there a way to use "normal" Databases from a "normal" webhoster with prisma or do I need to use something like Google cloud, AWS, etc?
    h
    • 2
    • 5
  • o

    onePunchMan

    12/27/2018, 3:06 PM
    prisma uses opencrud, but in the specification I cant find "case insensitive" search
  • o

    onePunchMan

    12/27/2018, 3:07 PM
    I would use
    fieldname_ci
    , but its not part of the opencrud specs 😕
  • c

    Christian Cederfjärd

    12/27/2018, 3:08 PM
    @Novalis Hey man, take a look at https://www.prisma.io/docs/1.23/prisma-server/deployment-environments/docker-rty1
    h
    n
    • 3
    • 4
  • d

    David Casier

    12/27/2018, 3:13 PM
    <Typescript> Can someone tell me what is the best way to generate a user doc for prisma actions? (TS interfaces or introspectQuery?)
  • d

    David Casier

    12/27/2018, 3:15 PM
    I make a small tool for mattermost / slack and I would like to ask the necessary to the user. Example: "@Bot createUser name email ...". And I would like to automatically generate the command "@Bot help createUser"
  • d

    David Casier

    12/27/2018, 3:18 PM
    In fact, I would like to retrieve the arguments of the functions prisma. * and be able to retrieve the information of the arguments
  • d

    David Casier

    12/27/2018, 3:19 PM
    Example, retrieve the arguments of the types (UserInput, ...)
    h
    • 2
    • 14
  • s

    Slackbot

    12/27/2018, 3:29 PM
    This message was deleted.
    n
    • 2
    • 1
  • x

    xiaoqf10

    12/28/2018, 2:25 AM
    https://github.com/prisma/graphqlgen/pull/373 we have created a pull request to fix the graphqlgen problem.
    👍 3
    j
    • 2
    • 3
  • x

    xiaoqf10

    12/28/2018, 2:41 AM
    @jasonkuhrt
1...180181182...637Latest