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

    cory

    08/23/2018, 7:27 PM
    where the jibberish are “graphql aliases” 🤮
  • c

    cory

    08/23/2018, 7:39 PM
    Oh well, it works. Someone please holler at me if they have a really slick way to seed a db
    j
    c
    • 3
    • 17
  • k

    kratam

    08/23/2018, 8:11 PM
    If I add this query to my
    schema.graphql
    ,
    graphql codegen -p app
    fails with error:
    UnhandledPromiseRejectionWarning: Error: TypeError: Cannot read property 'type' of undefined
    Copy code
    search(id: ID!, radius: Int!): [Apartment!]!
    It seems it has a problem with the array because if I change the line to this (everything else remains the same), it works:
    Copy code
    search(id: ID!, radius: Int!): Apartment!
    Any suggestions? (edit: the graphql server works perfectly with both versions, only the
    graphql codegen
    command fails)
  • c

    catalinmiron

    08/23/2018, 8:15 PM
    Forgot to add
    # import Apartment from "./generated/prisma.graphql"
    ? Also is the type in your
    datamodel.graphql
    as well?
    k
    • 2
    • 3
  • c

    catalinmiron

    08/23/2018, 8:18 PM
    also, just a thing, I'm not sure what you're building, but doing search with a mandatory
    id
    field seems wrong. 🙂
    k
    r
    • 3
    • 10
  • a

    Apple123

    08/24/2018, 8:04 AM
    Can I start/run the prisma server on my machine without docker?
    c
    d
    • 3
    • 2
  • v

    Vanna

    08/24/2018, 8:47 AM
    hi all, can you help me with mutation with variable?
  • v

    Vanna

    08/24/2018, 8:47 AM
  • v

    Vanna

    08/24/2018, 8:48 AM
  • v

    Vanna

    08/24/2018, 8:48 AM
    I got this error not defined
  • c

    catalinmiron

    08/24/2018, 8:50 AM
    Is because
    data.value
    is undefined. maybe you don't have any
    data.value
    as arg in
    doAddPhoneNumber
    callback
  • c

    catalinmiron

    08/24/2018, 8:50 AM
    And usually you should decouple logic from render 🙂
  • v

    Vanna

    08/24/2018, 8:58 AM
    @catalinmiron I have data.value defined. dont know why
  • v

    Vanna

    08/24/2018, 9:01 AM
    @catalinmiron it works now. my bad i put them in phone object
    👍 1
  • v

    Vanna

    08/24/2018, 9:02 AM
  • m

    mike_moran

    08/24/2018, 11:04 AM
    It's hard to search for this so asking here: are there any examples of GRPC/protobuf being used as the transport protocol for GraphQL? (I know about rejoiner, but that seems to be emitting JSON)
  • z

    zonofthor

    08/24/2018, 2:05 PM
    Prisma on docker - isn't it a best practice to not expose Prisma to outside, via SSH I can easily manage it from host. Asking because boilerplates with docker configure it to be exposed externally?
  • a

    Alex Howard

    08/24/2018, 2:26 PM
    Prisma wants a
    PRISMA_CONFIG
    env var with line breaks in it.. but I have my prisma server deployed on Amazon ECS which does NOT like supporting line breaks in env vars... is there an alternate way to provide this info?
    d
    • 2
    • 4
  • c

    cory

    08/24/2018, 2:42 PM
    What is this
    _RelayId
    table? \: ^\
    n
    • 2
    • 2
  • h

    hw

    08/24/2018, 3:47 PM
    I want to get the count of users who follow the theme. What should I do ?
    How_do_I_get_the_count_of_relation_list_field.js
    n
    • 2
    • 4
  • t

    tfiwm

    08/24/2018, 5:12 PM
    anybody knows where i get my PRISMA_MANAGEMENT_API_SECRET secret if i setup a server via prisma.io with own mysql db and heroku?
  • k

    Kristof

    08/24/2018, 5:58 PM
    @tfiwm check "settings => config vars" in the heroku dashboard of the prisma app
    👍 1
  • k

    Kristof

    08/24/2018, 5:58 PM
    its in the CONFIG var
  • s

    stefan f

    08/24/2018, 7:07 PM
    I'm trying to use delegation and schema stitching with prisma, but failing tremendously. Are there any good tutorials or documentation on this subject? I saw that there is a method name 'delegate' in the Prisma API, but I didn't find any documentation about it. Also using the method 'delegateToSchema' from graphql-tools didn't work.
    b
    • 2
    • 4
  • z

    zak.singh

    08/25/2018, 1:26 AM
    I have a screen that displays a list of products, sorted by average rating. I've written a field-level resolver using a SQL query: (AVG(rating) FROM Ratings WHERE Rating.listener.id = parent.id) is roughly the pseudocode. Although this means I can get the average rating when a user looks at a single product, I cannot use the
    orderBy
    provided by Prisma for the list of products since the average rating isn't stored in the database. How should I work around this?
  • s

    Seba

    08/25/2018, 12:58 PM
    looking python client to consume GraphQL API with subscription. Anyone have any ??
    h
    • 2
    • 3
  • m

    Marcus

    08/25/2018, 4:56 PM
    Hello, I want to get started with prisma cloud and I've started a postgres instance on GCP. I followed a tutorial in your documentation and I cant seem to find the "clusters" button anywhere in the dashboard ui, I've added my credit card details but still nothing, any ideas?
  • m

    Marcus

    08/25/2018, 5:07 PM
    nevermind I found it
  • a

    abhiaiyer

    08/25/2018, 8:05 PM
    Hey Marcus was it tough to find?
  • a

    abhiaiyer

    08/25/2018, 8:05 PM
    Anything we can do to make that better
1...106107108...637Latest