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

    Jo Sprague

    07/03/2018, 6:38 PM
    Hey everyone 🙂 I'm not sure if this is the right place to ask this, but I've been looking for the answer for a few hours, so maybe you all can point me in the right direction. I'm building an app that will combine data from my own database with data from user-authenticated social media profiles (Facebook, Twitter, Instagram, etc). I want a GraphQL server that combines data from all of those sources and makes it available as a single GraphQL schema. For now, I just need to fetch data from the Facebook API and a database, with the ability to extend to include other social media APIs in the future. What I'm trying to figure out is; Is there an existing GraphQL server implementation (or an example I can follow) that fetches user data from the Facebook API and a database? Or is that something I'll have to implement myself, from scratch?
  • j

    Jo Sprague

    07/03/2018, 6:45 PM
    I guess I'm trying to decide if the Graphcool Framework will do everything I need, or if I need to build something unique with Prisma.
  • y

    yuri

    07/03/2018, 7:39 PM
    Hey, is it possible to use one heroku account both for personal and team workspace? I get this error
    GraphQL error: Either that heroku account doesn't exist or it's not part of this workspace
    n
    • 2
    • 1
  • h

    hez

    07/03/2018, 7:45 PM
    Let's say I have a table of objects that all have a
    startTime
    and an
    endTime
    Using prisma-connect, how would I go about writing a query that accepts a
    DateTime
    string, and returns the proper object on which this input falls between the
    startTime
    and
    endTime
    Likewise, when adding new objects to this table, how could I structure a mutation to ensure that no time boundaries overlap?
    j
    • 2
    • 3
  • c

    checkmatez

    07/03/2018, 8:01 PM
    Posted a question to forum: https://www.prisma.io/forum/t/how-to-handle-info-in-an-app-schema-with-additional-datatypes-than-db-schema/3800/5?u=checkmatez Would appreciate any insight about how to implement resolvers with Prisma when app schema and database schema diverges significantly!
  • j

    Jonathan

    07/03/2018, 8:02 PM
    How do you look at existing data in the console with the new interface now?
  • j

    Jonathan

    07/03/2018, 8:03 PM
    There used to be a tab called "Data" that would show you all the data in tables for each of your models. That no longer seems to be there
  • j

    Jenkins

    07/03/2018, 8:14 PM
    I can see Data Browser in the left panel of my online console at app.prisma.io. Is it that console you're talking about?
  • j

    Jonathan

    07/03/2018, 8:17 PM
    I'm talking about at the graph.cool interface @ https://api.graph.cool/simple/v1/key
  • j

    Jonathan

    07/03/2018, 8:37 PM
    Nevermind, I went directly to the playground needing the console instead of going through the console first. I didn't realize they were 2 different areas.
  • j

    Jenkins

    07/03/2018, 8:38 PM
    Aaaaah! Never used that, so can't help you anyways. Sorry 🙂
  • d

    dreadjr

    07/03/2018, 9:42 PM
    Anyone have any resources for a middleware or proxy for quota type token bucket algorithm, on the graphql api?
    j
    • 2
    • 1
  • k

    Kevinclap

    07/04/2018, 1:25 AM
    Hi everyone, Has anybody tried to connect Prisma to a Postgres DB in RDS? When I enter the host, databaseName, schema, user and password It keeps giving me an authentication error. But I’m sure I’m putting the correct credentials
    a
    • 2
    • 2
  • b

    buoyantair

    07/04/2018, 6:55 AM
    Guys, I have a question, whats the difference between apollo stack and prisma?
    a
    a
    n
    • 4
    • 9
  • g

    Gorodov Maksim

    07/04/2018, 8:43 AM
    I have such schemas:
    Copy code
    type Person {
      id: ID! @unique
      name: String!
      position: String!
      karma: Int!
      description: String
      actions: [Action!]!
      author: User!
    }
    
    type Action {
      id: ID! @unique
      title: String!
      date: String!
      description: String
      karma: String!
      executors: String!
      members: [ActionMember!]!
      author: User!
    }
    
    type ActionMember {
      id: ID! @unique
      person: Person
      user: User
      isUser: Boolean!
      side: String!
    }
    And I need to connect
    Action
    to
    Person
    via
    ActionMember
    . Is it possible? If yes, could u tell me how? This schema on gist (better highlight, slack sucks in it) - https://gist.github.com/SilencerWeb/c6028759e62ef83bfefe3d8261796a89
  • g

    Gorodov Maksim

    07/04/2018, 8:45 AM
    one
    Action
    can be connected to many `Person`s
    a
    • 2
    • 4
  • m

    michael.graham

    07/04/2018, 8:53 AM
    Hey folks! Here is neo4j-graphql-server, a package inspired by the GRANDstack that uses methods and resources from Neo4j, Apollo, and Prisma for using GraphQL with Neo4j graph databases! I've worked on it for months now and hope that some people find it useful 🙂 https://www.npmjs.com/package/neo4j-graphql-server https://neo4j-graphql-server.gitbook.io/docs/
    fast parrot 1
  • b

    bhargav

    07/04/2018, 9:02 AM
    I have some Fundamental questions about Prisma. How can I do these traditional tasks using Prisma? I do most of my development in Laravel (Php framework). These are the tasks I perform on day to day basis - Using queue worker, - email notification (and sometimes push notifications). - Background Jobs (e.g., sending email notification if the user is not active for past few days) Can someone guide me what I should refer to learn more about these topics? Can you refer to some good open source project I can refer to learn Prisma and Graphql?
    c
    j
    • 3
    • 4
  • b

    b4dnewz

    07/04/2018, 10:56 AM
    hi everybody 👋
    👋 8
  • y

    yordi-twinski

    07/04/2018, 11:22 AM
    I'm not grasping how to do subscriptions easily with Prisma / react-apollo.. How to initialize the client? 😊
  • l

    Lucas Geitner

    07/04/2018, 11:56 AM
    Hello. Problème with Heroku Login after log already in an other workspace : TypeError: e.data.herokuAccount is null[En savoir plus]
  • n

    Nick

    07/04/2018, 12:00 PM
    https://github.com/howtographql/howtographql/issues/697 Made an issue regarding the https://www.howtographql.com/
    👍 1
  • a

    Arnab

    07/04/2018, 12:15 PM
    I'm trying to introspect an existing psql database. Prisma is currently exclaiming that
    Error: The provided database doesn't contain any tables. Please either provide another database or choose "No" for "Does your database contain existing data?"
    . However, when I do
    psql -h localhost -p 5430 -U <my_user> -p <my_password
    and then
    \dt
    I can see lots of tables in my schema. Does it matter that the database in question has a few triggers and also is a bitemporal database?
    n
    d
    • 3
    • 10
  • d

    Darryl

    07/04/2018, 12:31 PM
    Hi, everyone. I’ve been totally stuck with something for a few days now and while I got a nice pointer from @nilan yesterday, I’m still not quite there. Full details in the forum post: https://www.prisma.io/forum/t/looking-for-help-with-relations-in-my-schema/3886/4. Any advice would be very much appreciated.
  • f

    freder

    07/04/2018, 12:58 PM
    hi! — I just started a new
    prisma
    project locally (using docker). now I want to implement custom resolvers, but I'm not sure how to register them. the documentation always seems to assume that I'm using
    graphql-yoga
    directly... what am I missing here?
    j
    • 2
    • 6
  • d

    Darryl

    07/04/2018, 1:38 PM
    Can anyone help me with this? mutation
    Copy code
    // args.ingredients = [ { quantity: 1, ingredient: 'Ingredient 1' }, { quantity: 3, ingredient: 'Ingredient 2' } ]
    // args.categories = ["Category 1", "Category 2"]
    
        return context.prisma.mutation.createRecipe(
          {
            data: {
              name,
              ingredients: { ... } ← how should this look?
              categories: {
                connect: [...args.categories]
              }
            }
          },
          info
        );
    I essentially want the written ingredients (on the recipe) to be:
    Copy code
    ingredients: [
      {
        ingredient: { ... } ← this is the connected ingredient from the ingredients table so it'll have all its nested info
        quantity: 1 ← this is the quantity specified for that specific ingredient
      },
      {
        ingredient: { ... }
        quantity: 3
      }
    ]
    As you can see in the mutation, I’m using connect with categories and I get that spreading them will connect to all categories but I don’t understand how to do this with ingredients as I’m not just connecting to the ingredients provided; I’m also wanting to keep the quantity provided.
  • d

    Darryl

    07/04/2018, 1:44 PM
    In the mutation, I figured the shape might be something like this:
    Copy code
    ingredients: {
      create: [
        {
          quantity: ??? ← what do I put here? There are multiple ingredients so multiple values for quantity
          ingredient: {
            connect: ??? ← what do I put here? There are multiple ingredients and each one connects to a specific ingredient in the db
          }
        }
      ]
    }
    • 1
    • 1
  • y

    yuri

    07/04/2018, 4:03 PM
    Hey, is it possible to use one heroku account both for personal and team workspace? I get this error
    GraphQL error: Either that heroku account doesn't exist or it's not part of this workspace
    n
    • 2
    • 2
  • a

    aroman

    07/04/2018, 4:37 PM
    Has anyone encountered this before? I run into it when using Prisma 1.11 node -v: 8.11.3 npm -v: 5.6.0
    -.txt
  • n

    nilan

    07/04/2018, 4:38 PM
    It looks like your Node version does not support this syntax.
    a
    • 2
    • 2
1...727374...637Latest