https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • i

    iamclaytonray

    11/22/2017, 4:42 AM
    I’m currently building a clone of Facebook in React, Apollo 2, GraphQL/GC, and Node/Express/TypeScript. If anyone wants to join in, let me know! It’s not a super hardcore project but not a minimal representation either. If anyone’s new to GC/GraphQL, this would probably be good practice 🙂
    🎉 1
    m
    • 2
    • 9
  • e

    ersherr

    11/22/2017, 5:04 AM
    has anyone successfully used the JSON type with Graphcool?
    Copy code
    User
        ✖ The field `extras` has the type `JSON` but there's no type or enum declaration with that name.
  • e

    ersherr

    11/22/2017, 5:14 AM
    ah ok cool it’s Json not JSON 🙂 maybe something to add to the docs
  • e

    ersherr

    11/22/2017, 5:16 AM
    anyway works great.
  • l

    Lotafak

    11/22/2017, 7:39 AM
    Hey. Are there any plans at providing graph cool console for local development?
    i
    d
    m
    • 4
    • 13
  • a

    AsPrO

    11/22/2017, 10:26 AM
    @nilan Hi, do you have a mind on it ? Could it be a new feature ? Or maybe there is already an good way to implement it ?
    n
    • 2
    • 1
  • a

    alexanbj

    11/22/2017, 10:36 AM
    Since $now isn’t available in permission queries yet… What is the best approach to only allow access after a certain timestamp? https://docs-next.graph.cool/docs/reference/auth/authorization/permission-queries-iox3aqu0ee#custom-variables
    • 1
    • 1
  • c

    cachemoi

    11/22/2017, 11:12 AM
    I'm going through the templates and I came across this notation in the simple email/pass auth:
    Copy code
    export default async (event: FunctionEvent<EventData>) => {
      try {
        const graphcool = fromEvent(event)
      }
      //..//
    }
    Is this event object an onlick event? I can't seem to find a way to initiate the graphcool object without
    fomEvent()
    I'm using VueX so I'd rather not have to pass the event object to my actions
    i
    • 2
    • 11
  • c

    cachemoi

    11/22/2017, 11:13 AM
    https://github.com/graphcool/templates/blob/master/auth/email-password/src/authenticate.ts
  • c

    cachemoi

    11/22/2017, 11:14 AM
    apologies if I'm missing something obvious
  • k

    kitze

    11/22/2017, 11:15 AM
    😞 the web console is really the fastest way to create a BaaS, please don’t get rid of it completely.
  • k

    kitze

    11/22/2017, 11:16 AM
    Manually writing the schema file leads to tons of typos and it’s slow compared to just clicking “add type”, “add field” and “add relation”
    👆 2
  • l

    lewisblackwood

    11/22/2017, 11:22 AM
    hey 👋 is there a place in the UI where I can view old mutation callbacks that were created, from before the "⚡functions" tab was introduced? It seems like we still have some that are active, and we'd like to be able to clear them.
  • t

    Tahul

    11/22/2017, 11:58 AM
    Hello everyone, is there anywhere I can find a walkthrough setting up chromeless with AWS?
  • r

    rein

    11/22/2017, 12:34 PM
    where can I access the integrations? I just switched to the framework for a new project and I cant seem to find the integrations in the console
    m
    i
    +2
    • 5
    • 17
  • t

    Tahul

    11/22/2017, 1:12 PM
    Does someone has an idea why I do have a timeout when I try to run script on AWS?
  • t

    Tahul

    11/22/2017, 1:12 PM

    https://ipseity.fr/share/kitty_portable_2017-11-22_14-12-12.png▾

  • t

    titirex

    11/22/2017, 2:22 PM
    Hello, Do you know how I can have computed fields ? For instance I would like to have something like
    Copy code
    type User {
      name: String!
      greetWithTime: String!
    }
    Copy code
    export default async event => ({
      greetWithTime: `Hello ${event.data.name} it's ${new Date()}`,
    });
  • v

    Vinnie

    11/22/2017, 2:42 PM
    Right, so, multi-stage deployment. I am struggling to figure out how GC really looks at this. Is it done just via deploying the same service to different targets? Also, what’s a target really? If I have prod and dev as targets, both being deployed to the same region, I have to deploy the same service with different names for each target. Finally, my idea of multistage deployment is that I can also branch off inheriting all the data as well (database, asset files, etc.), and I can sync the data from one stage to another. If I merely deploy the same service to another target/name, I have then to take care of importing data myself. Sorry for the long query 🙂
    a
    • 2
    • 10
  • f

    fnolla

    11/22/2017, 3:26 PM
    Hi, I have the following models and am wondering how to to add an automation result to the associated test. I have looked at the one-to-many mutation but it seems i need to have the id already? doesn't really make sense. What i am trying to achieve is to have a table that has the results of the tests which can be many and it be linked to that test. Any help would be great!
    l
    • 2
    • 9
  • f

    fnolla

    11/22/2017, 3:26 PM
    Copy code
    type Test @model {
      id: ID! @isUnique
      createdAt: DateTime!
      updatedAt: DateTime!
      testId: Int! @isUnique
      title: String!
      result: String
      stepCount: Int!
      featureId: Int!
      automationResults: [AutomationResult!]! @relation(name: "AutomationResult")
    }
    
    type AutomationResult @model {
      id: ID! @isUnique
      testId: Int! @isUnique
      qa: Int
      stg: Int
      prod: Int
      test: Test @relation(name: "AutomationResult")
    }
  • l

    lawjolla

    11/22/2017, 5:15 PM
    Getting started with GraphCool with the following high level question. Say that I want aggregate analytics from my data, e.g. average time to sale for vehicles in a given month. What’s a typical implementation? I imagine.. 1. API gateway with a function aggregating the data, e.g. clients calls (in pseudo code):
    query { averageTimeToSale(from: date, to: date) { timeInDays}}
    and the API gateway calls to the CRUD API
    query { vehicles(soldDate > x and < y) { dateonline datesold}}
    and a function manually parses the data to return
    timeInDays
    2. API gateway to a webhook that queries the database directly, e.g.
    SELECT AVG(DATEDIFF(sold, online)) from vehicles WHERE ...
    ? Or am I missing the boat entirely?
  • p

    panzupa

    11/22/2017, 5:18 PM
    anyone has experiance with createPaginationContainer in Relay Modern?
  • p

    panzupa

    11/22/2017, 5:35 PM
    Am I wrong or the current implementation of Permission Queriess that returns
    count = all_nodes_in_database
    (instead of number of nodes to which current user HAS access) is BREAKING PaginationContainer in Relay Modern?
    • 1
    • 1
  • p

    panzupa

    11/22/2017, 8:49 PM
    Can you guys vote on https://github.com/graphcool/framework/issues/178 ?
    👍 1
    🦜 2
  • c

    Connorelsea

    11/22/2017, 9:16 PM
    The links below the code snippets here do not match the code in the code snippets. Was wondering if there is a more recent/updated github repo that reflects the newer code? https://docs-next.graph.cool/docs/tutorials/auth/authentication-with-email-and-password-for-react-and-apollo-cu3jah9ech#checking-the-authenticated-status
  • b

    bnilsen

    11/22/2017, 11:04 PM
    Is there a way to access the currently signed in user?
    a
    k
    • 3
    • 14
  • k

    Kevin Grandon

    11/22/2017, 11:46 PM
    I’m using apollo, wondering if someone could point me toward an example of using a prop that my component receives, and passing that into the graphql query.
    a
    • 2
    • 3
  • e

    ersherr

    11/23/2017, 4:54 AM
    hey! i’m using the
    email-password
    template and getting the following error whenever i try to create a user
  • e

    ersherr

    11/23/2017, 4:54 AM
    Copy code
    Process stdout: '[object Object] 
    Error: Unknown argument 'email' on field 'User' of type 'Query'. (line 3, column 12):
1...444445446...637Latest