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

    rein

    09/05/2018, 7:18 AM
    I have both control over the client side as well as the server, so maybe its possible to return an edge when creating an item?
  • k

    kratam

    09/05/2018, 7:35 AM
    I get this error after running `prisma deploy`:
    Copy code
    prisma deploy
    Creating stage final for service hmm !
    
    ERROR: Whoops. Looks like an internal server error. Search your server logs for request ID: eu1:management:cjloturst4to40b5805sqt56w
    Is prisma down?
    l
    s
    • 3
    • 3
  • l

    Lucas Munhoz

    09/05/2018, 2:37 PM
    Is there a way to pass default fields to
    info
    in the resolver? Like merging the
    info
    coming + some default fields I’ll need in field resolvers (like id)
    👍 2
    j
    • 2
    • 2
  • j

    Jidé

    09/05/2018, 3:17 PM
    @Lucas Munhoz do you mean this ? https://github.com/prisma/prisma-binding/issues/64
  • c

    cory

    09/05/2018, 3:56 PM
    Y’all storing secrets in plaintext in postgres?
  • s

    shane

    09/05/2018, 4:14 PM
    Hello all, I have an Apollo Client Mutation Component question. Does anyone know if/how it would be possible to use the Mutation component with a conditional gql string? Each string contains a different mutate function name so I’m unsure of how to handle this. Short of not using the mutation component, but I would like to make use of the higher order loading and errors etc. Here is a snippet of what I’m trying to accomplish (currently doesn’t work, the mutationFunc variable is unrecognized when attempting to use at the mutate function name, even tried setting the variable to strings and calling [mutationFunc], same outcome):
    Copy code
    const MUTATION_STRING = isCancel ? MANAGE_ACCOUNT_MUTATION : DELETE_USER_MUTATION
        const mutationFunc = isCancel ? updateUser : deleteUser // <-- in theory what I'd like to do
    
        return (
          <Mutation
            mutation={MUTATION_STRING}
          >
            {/* v---  then call that conditional mutate function based on the MUTATION_STRING */}
            {(mutationFunc, { loading, error }) => (...)}
    k
    • 2
    • 3
  • p

    patrickdevivo

    09/05/2018, 4:56 PM
    hi everyone, I know it's annoying to ask "when will x be available" questions, but i just wanted to post here and see if anyone could provide an update on this issue: https://github.com/prisma/prisma/issues/1275 regarding being able to query scalar lists in prisma. it's something I'd really like to see implemented, and I'm happy to try to help out if there's work being done it
    👍 1
  • s

    Seppe Snoeck

    09/05/2018, 9:02 PM
    Hi, I am trying to update my cache. It seems variables are not read. Is this the correct way to include your query variables?
    -.js
  • s

    steve

    09/06/2018, 4:50 AM
    message has been deleted
    c
    c
    • 3
    • 4
  • s

    steve

    09/06/2018, 4:50 AM
    message has been deleted
  • s

    steve

    09/06/2018, 4:51 AM
    How do I solve this problem?
  • s

    steve

    09/06/2018, 4:51 AM
    Please help me..
  • s

    steve

    09/06/2018, 4:51 AM
    message has been deleted
  • s

    steve

    09/06/2018, 4:51 AM
    message has been deleted
  • s

    steve

    09/06/2018, 4:52 AM
    message has been deleted
  • s

    steve

    09/06/2018, 4:52 AM
    message has been deleted
  • s

    steve

    09/06/2018, 4:52 AM
    message has been deleted
  • s

    steve

    09/06/2018, 4:56 AM
    message has been deleted
  • s

    steve

    09/06/2018, 5:08 AM
    somebody help me
  • r

    rli

    09/06/2018, 5:35 AM
    on the typescript boilerplate projects it says "Static type generation: TypeScript types for GraphQL queries & mutations are generated in a build step"
  • r

    rli

    09/06/2018, 5:35 AM
    what does this mean?
  • h

    Haider Malik

    09/06/2018, 7:55 AM
    Hi, Could you tell me how to fix this error?
    Copy code
    {
    “error”: {
    “message”: “Subscription field must return Async Iterable. Received: undefined”
    }
    }
    Copy code
    //schema.graphgl
                    type Subscription {
                          course(where: CourseSubscriptionWhereInput): CourseSubscriptionPayload
                        }
    Copy code
    //resolver
      const {forwardTo} = require('prisma-binding);
        Subscription: {
            course: forwardTo('db')
          }
    e
    • 2
    • 1
  • j

    jferrettiboke

    09/06/2018, 9:15 AM
    Hi guys, I have been developing a real-time chat app with Node.js, GraphQL, Prisma, React and Apollo. It will be open sourced soon! See the repository on GitHub below for more details about features of the app. The thing is that I am having some issues with subscriptions (Apollo) which must be fixed to release the app. If you are interested to help me out and try the beta soon, reach me on a direct message to go further. https://github.com/jferrettiboke/react-chat-app
    c
    • 2
    • 1
  • v

    Vinnie

    09/06/2018, 12:59 PM
    Anyone with good typescript knowledge in here willing to help with an off-topic question?
    h
    • 2
    • 11
  • h

    halborg

    09/06/2018, 1:03 PM
    Does anyone know of the best way to paginate a list that is the property of another object/list? https://www.prisma.io/forum/t/adding-pagination-to-lists-on-objects/4354
    e
    j
    • 3
    • 6
  • h

    huv1k

    09/06/2018, 2:25 PM
    Maybe for some inspiration kiwi.com graphql server https://github.com/kiwicom/graphql
  • v

    val

    09/06/2018, 3:52 PM
    Does anyone know of a frontend library that you can link with prisma to get a more visualisation of your data? I'd love to be able to see stuff like "Number of objects of
    Type
    created over the last X days". I know those queries are easy to write but I've little web frontend experience and am wondering whether something already exists that I can use?
  • j

    jcm

    09/06/2018, 4:30 PM
    published a post about using #graphql-middleware to validate mutation arguments using yup: https://medium.com/@jonathancardoso/graphql-mutation-arguments-validation-with-yup-using-graphql-middleware-645822fb748 Thanks for the awesome lib!
    👍 1
    prisma green 1
    c
    • 2
    • 2
  • c

    cory

    09/06/2018, 5:02 PM
    Hi, is there some docs that show a good pattern for two tables that are joined and that join table might need additional columns? Use case: Users table, Groups table. Users can belong to groups. Users that belong to a group might also be an admin of that group, so an
    isAdmin
    column on that join table might be handy.
    j
    • 2
    • 6
  • r

    rli

    09/06/2018, 5:19 PM
    what is the best way to automatically generate typescript typings for my server side graphql api? I'm not referring to the self-generated prisma typings, I'm referring to typings for the API i build on top of prisma
1...112113114...637Latest