https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • t

    Till

    03/21/2018, 8:24 PM
    I have a n:m relation between 2 models
  • t

    Till

    03/21/2018, 8:25 PM
    1 is a user model the other a team model
  • t

    Till

    03/21/2018, 8:27 PM
    i really have no clue on how to setup the permissions on the models and the relation
  • t

    Till

    03/21/2018, 8:27 PM
    now the team has a member prop (wich relates to the users obv...)
  • t

    Till

    03/21/2018, 8:27 PM
    i want the team name and id to be visible to everyone
  • t

    Till

    03/21/2018, 8:27 PM
    but the members of a team just to members of the team
    f
    • 2
    • 6
  • j

    James

    03/22/2018, 12:01 AM
    @Till interesting to watch you on this. I'm wanting to do the same (Eventually..)
  • s

    Sohel Khan

    03/22/2018, 5:22 AM
    @nilan How can i insert Many records(ex. JSON array) using single Mutation ??
    c
    n
    • 3
    • 12
  • s

    Sohel Khan

    03/22/2018, 5:25 AM
    How can i insert Many records(ex. JSON array) using single Mutation ?? if anyone has a solution please do reply....☺️
  • m

    Moritz

    03/22/2018, 7:19 AM
    Good morning, I have the following error when trying to deploy. I tired all the reset related prisma commands but nothing helped. Any suggestions?
    Copy code
    ERROR: Authentication token is invalid: Token can't be decoded: The token is expired since 2018-03-22T07:18:34Z
    l
    n
    • 3
    • 17
  • l

    lawjolla

    03/22/2018, 7:21 AM
    In GraphQL-Binding, there's a
    fragmentReplacements
    parameter with the signature
    Copy code
    fragmentReplacements: {
        [typeName: string]: { [fieldName: string]: InlineFragmentNode };
      },
    I'm not good enough at reading types. Can someone give me a practical demo of the proper structure?
    n
    s
    • 3
    • 8
  • n

    nghiepit

    03/22/2018, 10:50 AM
    #Prisma, How to customized status code error? Example: mutation login() => respond code 401 or 403
  • p

    picosam

    03/22/2018, 1:15 PM
    Hello! I have a question that has little to do with Prisma, but since y’all are cool, I’ll ask it anyways πŸ˜› In WebStorm, before running Jest, I’m trying to load my
    .env
    file before. Any idea what the node options I could provide would be, to load dotenv before running Jest?
    πŸ˜‚ 1
    n
    j
    +3
    • 6
    • 23
  • j

    James

    03/22/2018, 1:25 PM
    source .env
    (only a guess)
  • p

    picosam

    03/22/2018, 1:26 PM
    @nilan please feel free to delete it if it’s out of place.
  • j

    Josef Henryson

    03/22/2018, 2:43 PM
    Is there some way to make a resolver return the same structure as a query from client? Let’s say I call query User($id: ID!) from client, but instead call query MyUser(...) from client where MyUser is a resolver that updates something on server, but should return the same object as if I called User(). Is this possible?
    d
    t
    • 3
    • 6
  • b

    bpk

    03/22/2018, 3:50 PM
    Typo on the front page, under the 5 Minute demo:
    Graphcool allows to to integrate functions and react to events.
    Assuming this should read you to.
    πŸ‘ 1
  • t

    tbrannam

    03/22/2018, 4:39 PM
    i'm working through how to self-host prisma - but when I'm doing
    prisma deploy
    I'm getting
    Copy code
    Error: Whoops. Looks like an internal server error. Search your cluster logs for request ID: cluster:cluster:cjf2qrm4b000b0102ark1ccme: {"response":{"data":{"addProject":null},"errors":[{"message":"Whoops. Looks like an internal server error. Search your cluster logs for request ID: cluster:cluster:cjf2qrm4b000b0102ark1ccme","path":["addProject"],"locations":[{"line":2,"column":9}],"requestId":"cluster:cluster:cjf2qrm4b000b0102ark1ccme"}],"status":200},"request":{"query":"      mutation addProject($name: String! $stage: String! $secrets: [String!]) {\n        addProject(input: {\n          name: $name,\n          stage: $stage\n          secrets: $secrets\n        }) {\n          project {\n            name\n          }\n        }\n      }\n      ","variables":{"name":"my-db","stage":"dev","secrets":["mysecret1234"]}}}
        at GraphQLClient.<anonymous> (/app/node_modules/graphql-request/src/index.ts:71:13)
        at step (/app/node_modules/graphql-request/dist/src/index.js:40:23)
        at Object.next (/app/node_modules/graphql-request/dist/src/index.js:21:53)
        at fulfilled (/app/node_modules/graphql-request/dist/src/index.js:12:58)
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:118:7)
    d
    n
    • 3
    • 36
  • t

    tbrannam

    03/22/2018, 4:42 PM
    and I've turned off CLUSTER_PUBLIC_KEY at the moment
  • n

    nikolasburk

    03/22/2018, 5:30 PM
    Hey GraphQL fans πŸ‘‹ For those of you haven’t heard, we’re organizing a GraphQL mini-conference in Amsterdam on April 14: GraphQL Day πŸ‡³πŸ‡± ( www.graphqlday.org) The conference is beginner-friendly and has GraphQL expert speakers like: - Ken Wheeler (Director of OSS @ FormidableLabs) - Johannes Schickling (Founder and CEO @ Graphcool) - Sara Vieira (Frontend Engineer @ YLD.io) - Martijn Walraven (Technical Product Manager @ Apollo) - Ruben Verborgh (Professor of Semantic Web Technology @ University of Ghent) ... and a lot more Ticket prices are as follows: - 59 Euros (early bird - end tomorrow!!!) - 69 Euros (regular) - 89 Euros (late bird) You can get a 25% discount on your ticket with the following discount code: gc-slack-18 Get your ticket here: https://www.eventbrite.com/e/graphql-day-tickets-43145801253 Hope to see you in Amsterdam πŸ™Œ PS. Note that the price also includes delicious food and drinks throughout the conference day as well as a free pass to join the ReactAmsterdam after-party on Friday night! πŸŽ‰
    πŸš€ 5
    πŸŽ‰ 5
    πŸ‡³πŸ‡± 4
    parrotwave6 4
    fast parrot 6
    πŸ‘€ 4
    n
    • 2
    • 1
  • d

    Daniel K.

    03/22/2018, 7:15 PM
    can someone help with this? https://github.com/graphcool/prisma/issues/1943 I mean I would like to try to fix that, but I am not sure where to look for source ... is it Scala logic?
  • t

    Till

    03/22/2018, 11:36 PM
    hey, is it possible to use multiple custom directives in graph overall?
    h
    • 2
    • 1
  • s

    sid.gupta

    03/23/2018, 12:21 AM
    Hey Guys! I just published Part3 of Serverless and GraphQL series - more on subscriptions, optimistic UI and client components
    🦜 1
  • s

    sid.gupta

    03/23/2018, 12:21 AM
    https://hackernoon.com/running-a-scalable-reliable-graphql-endpoint-with-serverless-db16e42dc266
    πŸ‘ 1
    n
    • 2
    • 1
  • s

    sid.gupta

    03/23/2018, 12:21 AM
    always looking for feedback πŸ™‚ thanks!
    πŸ‘ 2
  • a

    aaron

    03/23/2018, 1:15 AM
    hi this is aaron
    πŸ’― 1
    n
    • 2
    • 2
  • h

    harmony

    03/23/2018, 1:18 AM
    hi
  • n

    nicksergeant

    03/23/2018, 2:23 AM
    πŸ‘‹
    πŸ‘‹ 2
  • r

    Raj Chaudhary

    03/23/2018, 5:47 AM
    Hi, I'm a newbie and haven't been through all of Prisma docs yet. But just wanted to ask if Prisma is compatible with plain vanilla Apollo GraphQL server, i.e., can I use Prisma with plain vanilla Apollo GraphQL server at all, as highlighted in https://www.apollographql.com/docs/apollo-server/example.html
    d
    n
    • 3
    • 10
  • t

    Till

    03/23/2018, 7:25 AM
    Iam stumbling with directives ... given is this one
    Copy code
    directive @auth( requires: UserRoleEnum = ADMIN ) on OBJECT
    . Now behind object you can chain stuff like FIELD or FIELD_DEFINITION. Whats the difference of those and where can i read upon the single directive types?
1...617618619...637Latest