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

    Andrew T. Poe

    08/29/2018, 9:49 PM
    Where is the best place to ask about the vscode-graphql plugin? I'm having a hard time making it work.
    n
    • 2
    • 2
  • a

    Andrew T. Poe

    08/29/2018, 9:51 PM
    My application was bootstrapped with Create React App, and uses the Apollo Client tools. We do not have a schema hosted in the client code, I need to pull it from an endpoint.
  • a

    Andrew T. Poe

    08/29/2018, 9:55 PM
    My
    .graphqlconfig.yml
    file currently looks like this:
    Copy code
    projects:
      APP_NAME:
        schemaPath: ./schema.graphql
        includes: ['src/**/*.js']
        extensions:
          endpoints:
            dev:
              url: <https://URL/api>
    n
    • 2
    • 4
  • t

    Tomas

    08/30/2018, 12:30 AM
    Hi, thanks for the amazing product! I am trying to implement caching server side. Is it possible? I found "http-link-dataloader" which mentiones that it is aimed to be used with yoga-server and prisma-binding, but I do not understand where can this be initialised and applied for queries between Yoga and Prisma.
  • t

    Tomas

    08/30/2018, 12:51 AM
    I found out that it is automatically used by prisma-binding ... but I cannot see caching working. If I run the same query twice, it is executed twice on prisma
    l
    z
    • 3
    • 5
  • c

    Cprogs

    08/30/2018, 4:50 AM
    Hi, why was the fargate deployment tutorial taken out of the docs for 1.14 ? Are there any known issues ?
    n
    • 2
    • 2
  • e

    Elfayer

    08/30/2018, 5:46 AM
    Hi I am getting an error "Whoops. Looks like an internal server error" while using
    prisma deploy
    any tips on where to look for with this kind of error?
  • e

    Elfayer

    08/30/2018, 5:46 AM
    And I can't even restart my docker...
  • e

    Elfayer

    08/30/2018, 5:47 AM
    What's going on?
    t
    n
    • 3
    • 4
  • t

    Tomas

    08/30/2018, 6:55 AM
    Guys, If I have a Relation for example "User -> Posts" - UserPosts. I know how to query this in graphql, but how do I query this in Java/Typesript? I can do "ctx.db.query.user ...." but how do I specify that I want posts ?
    h
    n
    • 3
    • 17
  • t

    Tomas

    08/30/2018, 6:57 AM
    Moreover, how would I ask for "pagination" of given posts ?
  • v

    val

    08/30/2018, 7:52 AM
    Can I create a custom type that the
    .schema
    uses only for input. i.e.
  • v

    val

    08/30/2018, 7:52 AM
    Untitled.js
  • v

    val

    08/30/2018, 7:54 AM
    Trying to but i get an error
    The type of Query.getSomethingBasedOnCustomType(customType:) must be Input Type but got MyCustomType
    n
    • 2
    • 3
  • s

    sigo

    08/30/2018, 8:25 AM
    @here . Hello guy’s I need your suggestion on which to use between graphcool and prisma to build a ride booking service, as the only developer in a team and I need to build the dashboard and mobile app in a space of 3weeks for the company I work for
    c
    • 2
    • 1
  • s

    sigo

    08/30/2018, 8:26 AM
    Should I go with graphcool or prisma
    c
    • 2
    • 2
  • h

    horia.ancas

    08/30/2018, 8:56 AM
    @sigo I think you should go with prisma, it’s got serious momentum behind it. Not sure about graphcool though.
  • k

    kratam

    08/30/2018, 8:57 AM
    Any pattern for this? Let's say I have a field on a Type which doesn't exist in the database, it only has a resolver. If I query the db with
    prisma-binding
    , the returned elements (obviously) doesn't have the field. But what if I want to use the resolved value/field e.g. for sorting or filtering the Response? In other words, is there a place where I can modify the response of a resolver after every sub-resolvers finished?
    n
    • 2
    • 5
  • s

    sigo

    08/30/2018, 9:13 AM
    Does prisma support Firestore
    c
    c
    l
    • 4
    • 5
  • t

    Tomas

    08/30/2018, 9:36 AM
    Guys, Prisma = Graphcool 😉
  • t

    Tomas

    08/30/2018, 9:36 AM
    It's just rebranded
  • c

    Cprogs

    08/30/2018, 9:38 AM
    Well I guess you can say that but what is quite different about Prisma is the you bring your own db and you have full control over resolver implementation... 🌹
    n
    • 2
    • 1
  • t

    Tomas

    08/30/2018, 9:46 AM
    Guys, is there any way I can use fragments in "info" ? Example of what I want to achieve is below.
  • t

    Tomas

    08/30/2018, 9:46 AM
    -.js
    k
    • 2
    • 6
  • u

    UsulPro

    08/30/2018, 11:01 AM
    Is it possible to define a description for GraphCool types and fields? Here is mentioned that
    A type has a name, an optional description and one or multiple fields
    https://www.graph.cool/docs/reference/database/data-modelling-eiroozae8u#model-types but I tried string literals and comments with no success
  • g

    Gorodov Maksim

    08/30/2018, 11:07 AM
    https://docs-beta.prisma.io/ redirects to main page
    n
    • 2
    • 4
  • g

    Gorodov Maksim

    08/30/2018, 11:17 AM
    Is there anybody who worked with prisma and dokku? I cannot get how I can connect my database that I created using https://github.com/dokku/dokku-postgres I tried to log all information about this database and maybe see such parametrs as host, port, database, schema, user, password, ssl so I could pass this information to
    docker-compose.yml
    , but I saw only this:
    Copy code
    =====> Container Information
           Config dir:          /var/lib/dokku/services/postgres/dailyq-database/config
           Data dir:            /var/lib/dokku/services/postgres/dailyq-database/data
           Dsn:                 <postgres://postgres:5348449fdedeb909903f23c9d22cd786@dokku-postgres-dailyq-database:5432/dailyq_database>
           Exposed ports:       -
           Id:                  f89f3a9702490a24c0ec20006a0f51583ef6e0963e4b0c553ee97028c1e77101
           Internal ip:         172.17.0.2
           Links:               dailyq-api
           Service root:        /var/lib/dokku/services/postgres/dailyq-database
           Status:              running
           Version:             postgres:10.4
    n
    w
    • 3
    • 26
  • n

    Nick

    08/30/2018, 1:28 PM
    Anyone built anything with react/typescript(tsx) and apollographql? I need an example repo
    g
    • 2
    • 3
  • d

    Daniel Mahon

    08/30/2018, 2:19 PM
    Hey all, suggestions on storing universal app state/settings on a graphql/prisma server? I debating between a single record collection or a settings/state collection but each have their issues. Thoughts on how best to handle this? The universal state will affect all clients and servers of the app and need to be persistent between re-deploys, etc. Right now Im leaning towards single record collection that way the schema is clearly defined.
  • d

    Daniel Mahon

    08/30/2018, 2:24 PM
    Also I was thinking by using a unique key like “type” and making it an enum I could guard against accidentally creating more than 1 record
1...109110111...637Latest