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

    jgonzalez.jaen

    04/19/2018, 1:08 PM
    -.js
  • j

    jgonzalez.jaen

    04/19/2018, 1:08 PM
    in the playground, I'm able to subscribe and pass some variables to the query
  • j

    jgonzalez.jaen

    04/19/2018, 1:09 PM
    I'm not able to find documentation anywhere about sending variables with subscriptions, (???)
  • j

    jgonzalez.jaen

    04/19/2018, 1:09 PM
    it should be supported I guess
  • j

    jgonzalez.jaen

    04/19/2018, 1:09 PM
    Can someone help please? 🙂
  • m

    martin

    04/19/2018, 1:49 PM
    Anyone have an idea how to integrate
    apollo-link-state
    with a Prisma-based api using Apollo Client? https://www.graph.cool/forum/t/prisma-apollo-link-state/3229
    b
    • 2
    • 1
  • m

    max

    04/19/2018, 4:36 PM
    Hey has anyone see this error before when starting
    graphql-yoga
    ? CustomDataFieldOrderByInput is already defined in
    ./generated/prisma
    Copy code
    /Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:134
        throw new Error('Type "' + typeRef.name.value + '" not found in document.');
              ^
    Error: Type "CustomDataFieldOrderByInput" not found in document.
        at ASTDefinitionBuilder._resolveType (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:134:11)
        at ASTDefinitionBuilder.buildType (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:218:79)
        at ASTDefinitionBuilder._buildWrappedType (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:227:24)
        at /Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:314:25
        at /Users/Max/graphql-server/node_modules/graphql/jsutils/keyValMap.js:28:31
        at Array.reduce (<anonymous>)
        at keyValMap (/Users/Max/graphql-server/node_modules/graphql/jsutils/keyValMap.js:27:15)
        at ASTDefinitionBuilder._makeInputValues (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:309:36)
        at ASTDefinitionBuilder.buildField (/Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:250:37)
        at /Users/Max/graphql-server/node_modules/graphql/utilities/buildASTSchema.js:302:21
    [nodemon] app crashed - waiting for file changes before starting...
    l
    n
    • 3
    • 8
  • m

    max

    04/19/2018, 6:48 PM
    does anyone know how to reset your generated prisma files?
    n
    • 2
    • 24
  • w

    wesbos

    04/19/2018, 6:55 PM
    Question regarding this package https://github.com/graphcool/graphql-import
  • w

    wesbos

    04/19/2018, 6:55 PM
    when I try use it with
    makeExecutableSchema
    it complains
    typeDefs must be a string, array or schema AST, got object
  • w

    wesbos

    04/19/2018, 6:55 PM
    but when I
    typeof typeDefs
    , it’s a string
    l
    • 2
    • 2
  • l

    lfades

    04/19/2018, 6:59 PM
    @wesbos can you share a piece of code ? sounds like something simple
  • w

    wesbos

    04/19/2018, 6:59 PM
    http://wes.io/r0ca here ya go
  • w

    wesbos

    04/19/2018, 7:02 PM
    what does makeExecutableSchema make? An AST?
    n
    n
    • 3
    • 11
  • l

    lfades

    04/19/2018, 7:03 PM
    it has a lot of attributes and methods to work with the schema
  • l

    lawjolla

    04/19/2018, 7:03 PM
    Did
    importSchema
    not work?
  • l

    lfades

    04/19/2018, 7:03 PM
    is the imported schema having the expected result, I mean, is a string with the full schema ?
  • w

    wesbos

    04/19/2018, 7:04 PM
    yep
  • w

    wesbos

    04/19/2018, 7:04 PM
    Im wondering if it’s something with the mock lib
  • w

    wesbos

    04/19/2018, 7:04 PM
    let me check their source
  • n

    nilan

    04/19/2018, 7:04 PM
    Could you please keep conversations to threads? 🙂
    👌 2
    t
    • 2
    • 1
  • w

    wesbos

    04/19/2018, 7:04 PM
    oops - yes sorry
    😡 1
    😄 1
  • l

    lawjolla

    04/19/2018, 7:08 PM
    Hopefully an Apollo question is ok... Does `client.query`’s result update the cache? I have a query to get the current user, e.g.
    const USER = gql'{ user { id name email ] }'
    on a component. On login, the login component refires the same query manually
    client.query({ query: USER })
    but the original component never updates. The Apollo cache shows the changed User. Any ideas?
    👍 1
    w
    n
    t
    • 4
    • 25
  • p

    parweb

    04/19/2018, 8:24 PM
    Hi everyone I’m trying to filter a list of location (lat, lng) by distance with a starting location
  • p

    parweb

    04/19/2018, 8:25 PM
    can we execute custom mysql query ?
  • u

    user

    04/19/2018, 11:32 PM
    A file was commented on
  • n

    Novvum

    04/20/2018, 2:10 AM
    Hey @nilan, has there been any progress on the Algolia integration with prisma?
  • j

    jgonzalez.jaen

    04/20/2018, 8:50 AM
    Could someone help with this please? I think the question is related to the way
    graph.cool
    handle the subscription messages. Thank you 🙂
  • v

    Vakrim

    04/20/2018, 9:41 AM
    do you write test for you resolvers? Do you mock prisma or not?
    c
    n
    • 3
    • 6
  • m

    michieldewilde

    04/20/2018, 1:24 PM
    Hey everybody. Had a lot of help in the past on the prisma slack so I’m trying my luck again. I have this application that has toys. Each of the toys has a field, published, that has a boolean value. So we have a query for getting a toy. Like you can assume the toys with published true can be accused publicly without having a JWT token. The situation at the moment is the following: I have a JWT middleware that checks a token and return 401 when the token is not valid. I can remove this middleware but then I have to check if the token is valid within each resolver except when a toy is published. The express middleware is route based and graphQL is query based ( I think this is an important point) So my question is: What is the best way to solve this?
    a
    l
    • 3
    • 3
1...789...637Latest