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

    sunrising

    06/13/2018, 7:13 AM
    Hi, I use graphcool web UI and i have a
    not a valid Json
    error while trying to mutate a valid json. this is the full message:
    Copy code
    GraphQL error: The value in the field 'vatRate' is not a valid Json: '"{\"id\":\"cj0p2sac9e23q01110ycm0hfc\",\"name\":\"Aliquota 22%\",\"description\":\"Aliquota ordinaria 22%\",\"value\":22}"'
    i get the same error if i use the object or the stringified version of it
    n
    • 2
    • 9
  • s

    Slackbot

    06/13/2018, 7:17 AM
    This message was deleted.
    n
    • 2
    • 1
  • a

    Aetherall

    06/13/2018, 8:46 AM
    I am having a hard time trying to delete an item containing a scalar list, does anyone have the same issue ?
    n
    • 2
    • 6
  • p

    Pitakun

    06/13/2018, 9:16 AM
    Hi all, I want to implement different authentication for different endpoints. How should i go about doing it? Use middlewares? Can i state multiple endpoints in graphql yoga?
  • w

    weakky

    06/13/2018, 9:40 AM
    Hey there, I was browsing the prisma airbnb example yesterday, and found a lot of witchcraft on a few resolvers: (fragment resolvers): https://github.com/prismagraphql/graphql-server-example/blob/master/src/resolvers/Home.ts#L6-L33 (transformed info object): https://github.com/prismagraphql/graphql-server-example/blob/master/src/resolvers/Query.ts#L8-L31 Are these type of resolvers documented anywhere ? šŸ¤”
    šŸ‘ 2
    l
    h
    • 3
    • 4
  • e

    ehodges

    06/13/2018, 1:30 PM
    How do I get someone an invite to Prisma slack?
    n
    • 2
    • 2
  • m

    MCPLL

    06/13/2018, 1:34 PM
    hi all
    e
    • 2
    • 5
  • m

    MCPLL

    06/13/2018, 1:34 PM
    o need some help with nuxtjs/apollo
  • m

    MCPLL

    06/13/2018, 1:34 PM
    https://github.com/nuxt-community/apollo-module
  • m

    MCPLL

    06/13/2018, 1:35 PM
    i don't find an example with last version
  • t

    terion

    06/13/2018, 1:36 PM
    Can someone of devs also take a look at this? https://github.com/prismagraphql/prisma/issues/2574 Very strange problem totally breaking continious delivery šŸ˜ž
    d
    • 2
    • 57
  • m

    MCPLL

    06/13/2018, 1:59 PM
    there's someone?
    šŸ‘‹ 1
  • h

    hvillain

    06/13/2018, 2:01 PM
    I'm having a hard time debugging async/await in Graphcool Framework. Functions only return "Process exited before completing request", but same code works perfectly fine in NodeJS scripts. Here is a Gist I created with code working fine, except in a resolver : https://gist.github.com/THook/a83e957d85cd45e801a600def352e418 Any idea?
  • m

    MCPLL

    06/13/2018, 2:31 PM
    i need help to configure the wright call to my server.... where i setup the Bearer token? into nuxty/apollo module i can simple pass an header with the right token inside but i don't undestand where i find this informatiuon
    n
    • 2
    • 1
  • n

    nate

    06/13/2018, 2:41 PM
    i made some changes to my schema recently, then deployed them without issue, but now i'm receiving the following
  • n

    nate

    06/13/2018, 2:41 PM
    -.txt
  • n

    nate

    06/13/2018, 2:41 PM
    i assume it's something in my schema, but i've commented out everything
  • n

    nate

    06/13/2018, 2:42 PM
    any other tips on how to find what that error is referring to?
    n
    • 2
    • 14
  • a

    Avi Block

    06/13/2018, 4:18 PM
    I want to write authentication middleware using graphql-middleware. There's an example which basically just throws an exception when you decide theuser is not authorized. How would you get the server to throw a 401 error instead?
    d
    n
    • 3
    • 8
  • h

    hez

    06/13/2018, 7:16 PM
    If I wanted to have a mutation that accepted an argument that did not get stored in data, but was rather used for fetching data from a secondary location... is that possible?
    d
    • 2
    • 2
  • h

    hez

    06/13/2018, 7:16 PM
    right now, I'm seeing the predictable "field not found in schema" sorts of errors
  • h

    hez

    06/13/2018, 7:17 PM
    basically, i need to create an object in DB 1 and an object in DB 2...they can't share any properties save a UUID
  • h

    hez

    06/13/2018, 7:17 PM
    but they define different aspects of the same thing.
  • a

    Avi Block

    06/13/2018, 7:18 PM
    why can't the field be part of the schema?
  • h

    hez

    06/13/2018, 7:18 PM
    elementary question, perhaps -- but if it's on the schema doesn't it also have to be in the data model?
  • a

    Avi Block

    06/13/2018, 7:20 PM
    not at all
  • a

    Avi Block

    06/13/2018, 7:20 PM
    and the schema itself doesn't have to be a one to one mapping of your database
    h
    d
    • 3
    • 8
  • j

    Jscott388

    06/13/2018, 9:14 PM
    So if I have this Photos: [Media!]! in my schema, does it delete the Media when I delete the main schema? Photos is part of House. If I delete house, will photos delete too?
    d
    • 2
    • 3
  • t

    tabsnotspaces

    06/14/2018, 12:02 AM
    Currently dealing with this error when introspecting my endpoint
    Could not find relatedModel for field [column_obfuscation] on model [None]:
    n
    • 2
    • 2
  • t

    tabsnotspaces

    06/14/2018, 12:03 AM
    prisma deploy
    works fine, but any introspection breaks šŸ˜ž
1...555657...637Latest