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

    agartha

    09/30/2017, 8:59 PM
    And is not the correct implementation of the logic
  • c

    coolboyjules

    09/30/2017, 9:00 PM
    im referring to line 10 here https://github.com/graphcool-examples/functions/blob/master/authentication/email-user-management/functions/signup/3-confirm.js
  • a

    agartha

    09/30/2017, 9:01 PM
    It's meant to be unique
  • c

    coolboyjules

    09/30/2017, 9:01 PM
    ok
  • c

    coolboyjules

    09/30/2017, 9:01 PM
    makes sense. i'll shoot the PR
  • a

    agartha

    09/30/2017, 9:02 PM
    Yes, so just the schema change
  • c

    coolboyjules

    09/30/2017, 9:02 PM
    yea
    👍🏻 1
  • c

    coolboyjules

    09/30/2017, 9:06 PM
    PR here
  • c

    coolboyjules

    09/30/2017, 9:06 PM
    https://github.com/graphcool-examples/functions/pull/83
  • c

    coolboyjules

    09/30/2017, 9:20 PM
    i sent another PR to add the
    confirmed
    field to the example schema and removed the
    confirmExpires
    and
    confirmToken
    required
    property
  • c

    coolboyjules

    09/30/2017, 9:20 PM
    https://github.com/graphcool-examples/functions/pull/84
  • m

    Mertin Dervish

    09/30/2017, 9:33 PM
    Just a quick PR https://github.com/graphcool/graphql-playground/pull/161
  • s

    stephenhandley

    10/01/2017, 1:18 AM
    are there any docs available for how the npm environment is specified for graphcool functions. i'm just looking at the pusher module example here: https://github.com/graphcool/modules/blob/master/messaging/pusher/src/triggerPusherEvent.js it does
    require('pusher')
    and wondering if I write my own modules and have npm deps, where do I specify them?
    a
    • 2
    • 3
  • d

    dannyql

    10/01/2017, 5:16 AM
    Ahoy! I'm getting this error when I try to add a
    JSON
    field to the schema:
    Copy code
    Errors
    json: The field `json` has the type `JSON` but there's no type or enum declaration with that name.
    json: The relation field `json` must specify a `@relation` directive: `@relation(name: "MyRelation")`
    a
    • 2
    • 2
  • d

    dannyql

    10/01/2017, 5:17 AM
    According to the Docs (https://www.graph.cool/docs/reference/schema/fields-teizeit5se/#json) this should be a valid field right?
  • r

    rein

    10/01/2017, 8:32 AM
    hey guys, can I ask you something? I think I'm missing part of the bigger picture of graphql/graphqool. Does Apollo keep its own store that I can query? For instance, I have a profile component that I pass an id, what is the simplest way to check if that id is the current user? When using redux I would just make a selector that returns a boolean, but here Im not sure.
    a
    • 2
    • 25
  • r

    rein

    10/01/2017, 12:39 PM
    if I have a query in graphql that fetches a user and the first 10 posts of that user, can I still use the fetchMore function in the graphql wrapper?
  • r

    rein

    10/01/2017, 12:54 PM
    or is it better to split the query up in userInfoQuery and userUpdatesQuery for example
  • m

    michaelchiche

    10/01/2017, 1:41 PM
    https://github.com/graphcool/graphcool/blob/master/docs/05-FAQ/03-Database.md you now have a self hosted version of graph.cool??? Where/how do we find/use it??? 🙂
  • r

    rein

    10/01/2017, 2:12 PM
    is it possible to order an array you get back from the query with an apollo option? or should that be done manually
  • e

    eruby

    10/01/2017, 2:47 PM
    @rein https://www.graph.cool/docs/reference/simple-api/ordering-by-field-vequoog7hu/
  • t

    the_bluescreen

    10/01/2017, 4:04 PM
    Fey all, do you know how to add user details that I got from facebook login on graphcool functions?
    e
    n
    • 3
    • 12
  • t

    the_bluescreen

    10/01/2017, 4:05 PM
    I want to add user email to user table but It’s just creating user automatically
  • r

    ragzor

    10/01/2017, 7:35 PM
    hey guys! how can I achieve this with graphcool? https://stackoverflow.com/questions/34321688/can-graphql-return-aggregate-counts
    ✅ 1
    w
    • 2
    • 2
  • m

    max

    10/01/2017, 8:43 PM
    Hello, Any help would be much appreciated. I just posted a question here: https://www.graph.cool/forum/t/creation-of-accessgroups-and-permissions/1105
    ✅ 1
    • 1
    • 1
  • g

    Gavin Ray

    10/01/2017, 10:03 PM
    Is there any way of integrating an existing database with GraphQL, or if I have a schema generated (say using PostGraphQL/Postgraphile's introspection to generate a GraphQL .gql or .json schema file from the data structure) to import that?
    m
    e
    +2
    • 5
    • 54
  • g

    Gavin Ray

    10/01/2017, 10:03 PM
    Would be incredibly useful, it's near impossible to port over large, existing projects to GraphQL that have complex models and entity associations
  • g

    Gavin Ray

    10/01/2017, 10:04 PM
    Postgraphile works okay but the authentication needs extending, which I've worked on, but it's not perfect.
  • t

    tekk

    10/01/2017, 10:29 PM
    I'm trying to just generate a standard User token, and the documentation seems to point me towards
    graphcool-lib
    saying that there will be documentation and examples on the github page. I don't see any docs at all, am I missing something? Is it possible to generate the token just using apollo-client?
    e
    • 2
    • 2
  • m

    max

    10/02/2017, 12:01 AM
    I switched off all my relationship permissions and I get the following error when creating a node: ''GraphQL error: No CONNECT permissions''. Has anyone else seen this? It might be related to: https://github.com/graphcool/graphcool/issues/398
1...356357358...637Latest