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

    raul

    06/05/2017, 6:34 PM
    Hello, where are the Graph Cool services located? I am considering setup up a colocated server to act as a proxy for my public API in order to detect and deter abusive use. But at the same time I don't want to incur in expensive latencies.
    n
    • 2
    • 5
  • j

    jeremy-hunter

    06/05/2017, 6:49 PM
    @raul aws eu-west-1 only at the moment, I’ve seen mention of a beta for other regions: https://www.graph.cool/docs/faq/graphcool-technology-ul6ue9gait/
    👍 1
  • m

    maxnachamkin

    06/05/2017, 7:10 PM
    Hey all, I'm working on a schema and I'm not sure the best practice for what I'm wanting to accomplish. I have a two Types involved in this: Team User The User is a part of a Team, and a User has many teams and a team has many Users. I'm wanting a boolean field called "isParticipating" that signifies if the User is participating in a particular team. They can be on a Team and not be participating. Putting in the field in User or Team wouldn't seem to work because of the many-to-many relationship. How would I create this field? Is there some kind of metadata that I could add to a User's Role in the team or would I create a new Type called 'Role' and link that to a User and a Team? Any guidance would help. Thanks!
    r
    n
    +2
    • 5
    • 14
  • l

    lastmjs

    06/05/2017, 7:24 PM
    The structure of the data returned by errors seems inconsistent
  • l

    lastmjs

    06/05/2017, 7:24 PM
    Sometimes I get just "error" with no data property, and the documentation says there will be an "errors" property that is an array
  • l

    lastmjs

    06/05/2017, 7:26 PM
    Why the inconsistency? Wouldn't it be better to always return a JSON object with a data property and an errors property?
    n
    • 2
    • 4
  • m

    maxnachamkin

    06/05/2017, 7:54 PM
    Is there a way to use Graphcool to setup a subscription to send Push Notifications to a particular set of people (Users that a part of a Team, for instance?).
    n
    j
    • 3
    • 18
  • p

    picosam

    06/05/2017, 8:25 PM
    Hello everyone (who's still awake!) -- are there ways to "flatten" an array returned from a GraphQL query, if the number of items returned from that array is only 1, or every forcing only the first item of the array using
    first: 1
    and so reading it in javascript without using
    item[0]
    ?
    n
    a
    • 3
    • 12
  • j

    jony

    06/05/2017, 8:36 PM
    hi - does anyone know of a good tutorial or guide for implementing apollo to a redux app ?
    p
    a
    • 3
    • 20
  • j

    jony

    06/05/2017, 8:36 PM
    I've googled but just in case I miss a good one I'm asking here
  • j

    jony

    06/05/2017, 9:02 PM
    thanks for the info @picosam !
    👍 1
  • j

    jjaybrown98

    06/05/2017, 9:33 PM
    when using a nested mutation to create a type in a one-to-one relationship, the owning side of the relationship is null...
  • j

    jjaybrown98

    06/05/2017, 9:33 PM
    any suggestionsns?
  • j

    jjaybrown98

    06/05/2017, 9:33 PM
    -.js
  • j

    jjaybrown98

    06/05/2017, 9:35 PM
    actually ignore that, seems to be working now. Might of been a delay on the client updating
  • a

    ahanif

    06/05/2017, 9:51 PM
    how is the filter field added to the graphql schema?
  • l

    lastmjs

    06/05/2017, 9:53 PM
    I'm not understanding this when I'm creating permissions for updating a user:
    No fields can be effected by this permission, as mutation permissions can't be applied to readonly fields
    n
    a
    • 3
    • 10
  • l

    lastmjs

    06/05/2017, 9:53 PM
    I'm not aware of any readonly fields on my User object, nor how to create readonly fields
  • c

    chicagoboy2011

    06/06/2017, 1:22 AM
    Has anyone had success migrating data following the tutorial on the site?
    n
    • 2
    • 7
  • l

    lastmjs

    06/06/2017, 9:36 AM
    Security question: is it safe to have secret keys in server-side subscription functions? How I dealt with secret keys before on my VPS was through environment variables, so the keys were never checked into any kind of source control and had to be manually entered into the VPS. I think that was a good practice. Is there anything like that available for the cloud functions that graph.cool supports, or is that unnecessary?
    s
    • 2
    • 3
  • p

    picosam

    06/06/2017, 10:02 AM
    I have the impression I'm not doing it right; should the above prevent any user from reading the User type of another user?! 😄
    Permission_Query.js
  • u

    user

    06/06/2017, 11:15 AM
    @agartha commented on @picosam’s file https://prisma.slack.com/files/U50GAPCFR/F5PAGDPHB/permission_query.js: @picosam I think it does! 😄
    Permission_Query.js
  • n

    nilan

    06/06/2017, 12:28 PM
    @picosam: in fact, this query allows every authenticated user to modify any user 🙂
    p
    • 2
    • 3
  • l

    lastmjs

    06/06/2017, 4:05 PM
    Does anyone with a permanent authentication token have full read and write access to all entities in the database, even if permissions do not allow anyone to read or write? I guess I'm wondering how the owner of a permanent authentication token fits into permissions
    s
    • 2
    • 3
  • l

    lastmjs

    06/06/2017, 6:07 PM
    I'm trying to log a user in from the server. I'm using a permanent auth token to give myself permissions to grab the user information that I need, the email and password. How can I get the JWT? The password is hashed and so when I try to log the user in with it it fails
    n
    • 2
    • 8
  • j

    jjaybrown98

    06/06/2017, 7:05 PM
    looking for some advice on creating a type with a JSON field
    n
    • 2
    • 8
  • l

    lastmjs

    06/06/2017, 7:14 PM
    I'm trying to rename a field on my user type:```ownedCourses: [Course!]! @relation(name: "AuthorOnCourse") @rename(oldName: "courses")```
    n
    • 2
    • 3
  • l

    lastmjs

    06/06/2017, 7:15 PM
    But I'm getting
    Copy code
    You can only create scalar fields and 'Course' is not a scalar value. Did you intend to create a relation?
  • s

    sebastien

    06/06/2017, 7:57 PM
    Trying to setup subscriptions using the Apollo client in an Angular 4 project. I’m getting a
    Invalid message type! at SubscriptionClient.processReceivedData
    error. I’ve set things up in the same exact way as the Apollo example app for subscriptions using subscriptions-transport-ws. I’m not sure if this a problem that’s related to Graphcool or Apollo. Otherwise without subsciptions my client works perfectly. The error originates from this part of the setup:
    Copy code
    const wsClient = new SubscriptionClient('<wss://subscriptions.graph.cool/v1/...>', {
      reconnect: true
    });
    Wondering if somebody has run into anything similar.
    n
    • 2
    • 7
  • m

    mclovin

    06/06/2017, 8:43 PM
    Trying to setup graph.cool with auth0. Is there anyway to receive a users (social) accesstokens? Like auth0 describes here: https://auth0.com/docs/tutorials/calling-an-external-idp-api
    a
    d
    • 3
    • 13
1...218219220...637Latest