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

    Ben

    07/07/2018, 2:40 PM
    more general question is why defaulting to dedicated relation tables vs foreign keys... seems like creating a lot of extra joins that are expensive in RDBMS..
  • k

    KyleG

    07/07/2018, 9:53 PM
    Is there a bug with Prisma's handling of Fragments that are for App Schema types?
    c
    n
    • 3
    • 10
  • o

    Oba-One

    07/07/2018, 10:54 PM
    I'm looking to build an server using Prisma and was wondering what type database is best suited for graphql. I'm interested in using cloud firestore, mongodb, or neo4j. Does anyone have any recommendations or link to resources better outlining what database to use?
    s
    • 2
    • 2
  • v

    vuegraphql

    07/08/2018, 1:10 AM
    hey yall how can i get the graphql-request client to send this mutation:
  • v

    vuegraphql

    07/08/2018, 1:10 AM
    Untitled.js
  • v

    vuegraphql

    07/08/2018, 1:12 AM
    as you can see my parameter has an object inside of it (user)
    k
    n
    • 3
    • 16
  • v

    vuegraphql

    07/08/2018, 1:12 AM
    i cant find any examples online with this
  • c

    codepunkt

    07/08/2018, 8:19 AM
    hello everyone! i'm using prisma with apollo-codegen and can't seem to generate typescript typings for custom scalars provided by prisma, such as DateTime. How do i manage this? The generated typescript looks like this:
    Copy code
    export interface talksConnectionQuery_talks_edges_node {
      __typename: "Talk";
      id: string;
      youtubeId: string;
      title: string;
      createdAt: DateTime;
    }
    and
    DateTime
    is not defined anywhere.
  • c

    codepunkt

    07/08/2018, 8:35 AM
    the
    --passthroughCustomScalars
    option on the
    apollo-codegen generate
    turns
    DateTime
    into
    any
    . That's a first step! šŸ™‚
  • g

    Gorodov Maksim

    07/08/2018, 9:16 AM
    I'm trying to make file uploading, I pass the file from frontend but get empty object. Backend:
    Copy code
    // datamodel.graphql
    type File {
      id: ID! @unique
      createdAt: DateTime!
      updatedAt: DateTime!
      filename: String!
      mimetype: String!
      encoding: String!
      url: String! @unique
    }
    
    // schema.graphql
    uploadFile(file: Upload!): File!
    
    // mutation.js
    const uploadFile = async(_, args, context, info) => {
      console.log(args.file) // always {}
      
      return await processUpload(await args.file, context);
    };
    Frontend:
    Copy code
    // mutation.js
    export const UPLOAD_FILE = gql`
      mutation uploadFile($file: Upload!) {
        uploadFile(file: $file) {
          id
        }
      }
    `;
    
    // it is onChange handler for input[type='file']
    const file = e.currentTarget.files[0];
    
    console.log(file); // checkout this screenshot to see what is in 'file' - <http://prntscr.com/k3vso2>
    
    if (file) {
        uploadFile({
            variables: {
          file: file,
        },
      });
    }
    Also, maybe it is because my client on frontend configured not correctly, here is a gist of it's configuration - https://gist.github.com/SilencerWeb/67237dd3f1300149bd5e743614e96c94
  • g

    Gorodov Maksim

    07/08/2018, 9:27 AM
    yes, i guess it is because my client configured not correctly, but I cannot get why, I added
    createUploadLink
  • g

    Gorodov Maksim

    07/08/2018, 10:27 AM
    hell yea, i found the solution. my client was configured not correctly. hell, it is such a mess...all these apollo links... https://gist.github.com/SilencerWeb/fa2f976460d0f5a7fc54280038159dd7
  • a

    Arnab

    07/08/2018, 10:42 AM
    Anyone else run into the issue of not being able to connect to the postgres db that is being run by prisma?
    h
    s
    • 3
    • 7
  • p

    picosam

    07/08/2018, 11:12 AM
    Hello! Anyone using Flow with Apollo here? I can’t figure this out: https://stackoverflow.com/questions/51215833/flow-error-when-using-react-apollo-query-component-render-prop
  • m

    MiloÅ” Đaković

    07/08/2018, 12:18 PM
    What would be proper way to write resolver for this type of query?
    Copy code
    mutation {
      createPerson(
        data: {
          lastName: "Last"
          firstName: "First"
          phones: { 
            create: [
            { phoneNumber: "phone1" }, 
            { phoneNumber: "phone2" }
          ] 
          }
        }
      ) {id}
    }
    n
    • 2
    • 1
  • a

    Al

    07/08/2018, 1:42 PM
    Hi guys, I want to implement auth0 authentication using scopes in a prisma server, but I can't understand how to check the scopes permission on each resolver. I can't find anything similar...Any ideas?
    n
    • 2
    • 2
  • t

    timwis

    07/08/2018, 5:42 PM
    Hey folks, whenever I restart my computer, I notice there are 4 graphcool docker images running. How do I stop them from auto-starting?
  • g

    geirman

    07/08/2018, 5:49 PM
    Can anyone point me in the right direction? I’d like to create a calculated value with the
    @defaultValue
    directive like this…
    Copy code
    type Event {
      id: ID! @unique
    
      title: String!
      slug: String! @unique @defaultValue(value: titleToSlug())
    }
    • 1
    • 1
  • t

    theom

    07/08/2018, 7:10 PM
    Can anyone shed any light on this issue? https://github.com/graphql-boilerplates/react-fullstack-graphql/issues/415
    k
    • 2
    • 6
  • s

    Sam Jackson

    07/08/2018, 10:43 PM
    Anyone have experience deploying one of the
    graphql-boilerplates
    with Kubernetes?
  • b

    Ben

    07/08/2018, 11:27 PM
    was so excited about Prisma, seems the SDL to database schema migration/create has one huge flaw in my mind, every relationship needs its own table, some entities will have several relationships generating a large amount of tables and joins to complete simple queries. The one very concerning design decision I've seen so far, what the heck is the problem with FKs ?!?
    a
    n
    • 3
    • 2
  • a

    alexey.rodionov

    07/09/2018, 7:30 AM
    Hi @everyone! Can anyone please help? https://www.prisma.io/forum/t/need-help-with-server-side-subscriptions/3924
  • r

    rwieruch

    07/09/2018, 9:09 AM
    Hey everyone šŸ‘‹ šŸ¤—
    šŸ‘‹ 9
  • n

    Nick

    07/09/2018, 10:42 AM
  • n

    Nick

    07/09/2018, 10:42 AM
    How do delete a server?
  • n

    Nick

    07/09/2018, 10:43 AM
    Enter a server a name... what it's that? I have tried prisma-eu1 not working
    h
    n
    • 3
    • 10
  • n

    Nick

    07/09/2018, 10:44 AM
    The docs have changed the finally moved on to the latest prisma
  • m

    Moritz

    07/09/2018, 10:45 AM
    Hi all, whats the state on exporting/backing up data from the prisma console?
  • g

    Garrett Thompson

    07/09/2018, 1:35 PM
    Can I extend the
    prismagraphql/prisma
    Docker image to include my datamodel? So rather than spin up a Docker container, then
    prisma deploy
    , I want to specify a container like this so it generates the schema at start:
    Copy code
    FROM prismagraphql/prisma:1.11
    
    COPY ./datamodel.graphql /some-dir-in-container
    šŸ‘ 2
    j
    • 2
    • 1
  • t

    terion

    07/09/2018, 2:22 PM
    Hello. I have a strange error with
    graphql-bindings
    and
    yoga-server
    combined. It drives me nuts for 4 days. Can anyone take a look at this please? https://github.com/graphql-binding/graphql-binding/issues/129
    šŸ‘Œ 1
1...757677...637Latest