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

    ldlework

    04/17/2018, 4:35 PM
    @Jscott388 I suppose this makes sense, because techincally the mutation needs to return a result with 3 "id" entries, and it needs different attribute names to stick them under
  • l

    ldlework

    04/17/2018, 4:40 PM
    I have a more conceptual question. Let's say there was a really nice ORM for Javascript. What would Prisma give you over a normal ORM, since, for your public GraphQL resolver implementations you just end up using the Prisma bindings which are basically like an ORM. I'm not really understanding why Prisma is GraphQL based, if you never end up actually directly utilizing the GraphQL aspect of Prisma in the end?
    n
    j
    • 3
    • 20
  • l

    ldlework

    04/17/2018, 4:40 PM
    Like, is there any actual utility to the CRUD GraphQL that Prisma spits out, given that you don't expose it to users, and you don't even use it internally (instead using the bindings api)?
  • l

    ldlework

    04/17/2018, 4:42 PM
    I'm a dumb person, so I'm sorry if that was a dumb question. 🙂
  • l

    ldlework

    04/17/2018, 5:26 PM
    Having to nuke all the time is horrible 😞
    n
    • 2
    • 4
  • l

    ldlework

    04/17/2018, 5:30 PM
    guess there is no point pointing out the obvious
  • t

    thetrudel

    04/17/2018, 5:37 PM
    trying to figure out where to get the
    key
    for
    prisma login --key <KEY>
  • t

    thetrudel

    04/17/2018, 5:37 PM
    any one out there who can enlighten me?
  • t

    thetrudel

    04/17/2018, 5:37 PM
    trying to login from remote machine
  • t

    thetrudel

    04/17/2018, 5:41 PM
    found this but wasn't very helpful on what the key was https://www.graph.cool/forum/t/how-to-use-prisma-cli-to-login-in-ci-environment/2200
    t
    n
    a
    • 4
    • 19
  • t

    taylor

    04/17/2018, 7:08 PM
    We’re trying to recreate the email-pass login integration from legacy but resolvers can’t accept anything other than scalars. Does anyone know how they got around this when they built them?
  • l

    ldlework

    04/17/2018, 7:17 PM
    Is there a way to break up a seed file into multiple files? Seems like import only accepts a string?
    h
    • 2
    • 1
  • l

    ldlework

    04/17/2018, 7:38 PM
    ah but, graphcool stuff support SDL import mechanism I think?
    n
    • 2
    • 1
  • l

    ldlework

    04/17/2018, 7:38 PM
    tries that
  • l

    ldlework

    04/17/2018, 7:39 PM
    hmm nope
  • h

    huv1k

    04/17/2018, 7:40 PM
    Can you please stick to threads? 💚
  • l

    ldlework

    04/17/2018, 8:50 PM
    What is the correct endpoint when trying to use apollo-codegen with the prisma graphql server? https://github.com/apollographql/apollo-codegen
    n
    • 2
    • 8
  • j

    Jscott388

    04/17/2018, 9:31 PM
    can you write javascript code in .graphql files?
    n
    • 2
    • 1
  • j

    Jscott388

    04/17/2018, 9:33 PM
    Trying to figure out how to do a mutation server side. Fetch the data, then do the mutation.
    n
    • 2
    • 1
  • j

    Jscott388

    04/17/2018, 10:07 PM
    Ugh
  • j

    Jscott388

    04/18/2018, 3:15 AM
    Anyone know of any examples I could use? I want to fetch data from a external source, use a graphql mutation to create or update the data I fetched to be saved in database. I need this done server side or perhaps lambda function. I can’t get my head around this.
  • r

    Rich

    04/18/2018, 3:56 AM
    Anyone know how to use mergeschemas with a mutation? This is driving me crazy!!!
  • r

    Rich

    04/18/2018, 3:58 AM
    The query portion is correct, however the mutation resolver keeps throwing an error ☹️.. can’t find any documentation or examples anywhere
    🤯 1
  • r

    Rich

    04/18/2018, 4:00 AM
    @Jscott388 look up makeremoteschema and mergeschemas, this will allow you to merge a remote schema with your local schema. You can then wire up the query’s to pull the remote data
  • r

    Rich

    04/18/2018, 4:01 AM
    Sorry, makeRemoteExecutableSchema *
  • u

    user

    04/18/2018, 4:06 AM
    @Rich commented on @Rich’s file

    https://prisma.slack.com/files/U9NGLBPUN/FA8HQFBFD/image_uploaded_from_ios.jpg▾

    : Scenario: I have a function setUser on my schema which takes a userInput object... email and password need to be updated on a remote service, so I need to first invoke the local setUser (with all fields), then invoke the remote setAccount (with the email/ password)
  • l

    ldlework

    04/18/2018, 5:10 AM
    Anyone here use ant.design? The docs are soooooo bad.
  • j

    Jim

    04/18/2018, 5:31 AM
    Has anyone set up a password recovery feature for the email-password template?
    t
    • 2
    • 7
  • a

    apertureless

    04/18/2018, 8:08 AM
    Hey there! I have some trouble getting graph.cool functions to work. Maybe someone got an idea? https://www.graph.cool/forum/t/graph-cool-functions-chromeless/3159
  • w

    Waweru

    04/18/2018, 9:05 AM
    Hey. I'm looping through an array to return each item in it in the resolver. I'm however getting only one item when I query on the GraphiQL client.
1...567...637Latest