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

    georgelovegrove

    07/23/2017, 12:02 PM
    As the current examples using graphcool for Expo and auth0 are a tadge out of date i've created a new example using the latest Expo, React Native and React packages. It uses auth0 and react-navigation. Would love any input on it, git stars always welcome. https://github.com/georgelovegrove/graphcool-expo-auth0
    🎉 1
    👍🏻 4
  • f

    frankspin

    07/23/2017, 12:45 PM
    What would be the best strategy to sync auth0 user profile with the user profile in Graph.cool? Send mutation to graph.cool and after/before save sync profile with auth0? Or the other way around?
    b
    • 2
    • 2
  • g

    giedriusr

    07/23/2017, 2:08 PM
    @joshpitzalis thanks. For me it doesn't work all the time :D
  • d

    dk0r

    07/23/2017, 3:54 PM
    [off topic] Any ideas how to implement a react-native <ScrollView> loop back to the beginning of the list? I would like to be able to endlessly scroll throw a list so that when the 'end' of the list is reached, it continues scrolling using the 'beginning'
  • g

    gex

    07/23/2017, 6:31 PM
    hello, how can i get the total number of entries of a given type? for example i have a type
    Todo
    and i’d like to add pagination which is possible with
    first
    and
    skip
    parameters on the
    allTodoes
    query but i would also like to add a traditional pagination below the list of todos (1 2 3 … 10). i cannot find this in the documentation 😕
    a
    • 2
    • 2
  • j

    jt9001

    07/23/2017, 8:23 PM
    Hi all, is there a practical limit to the number of mutations inside a batch mutation?
    n
    • 2
    • 2
  • p

    picosam

    07/23/2017, 9:13 PM
    I don’t know how I can get the authenticated user ID, the user calling the mutation that is, or if it’s even possible.
    Currently_stuck_on_this_inline_function__schema_extension_.js
  • a

    agartha

    07/23/2017, 9:29 PM
    It's currently only possible if you pass the userId to your mutation
    p
    n
    • 3
    • 3
  • a

    agartha

    07/23/2017, 9:30 PM
    https://github.com/graphcool/feature-requests/issues/219
  • a

    agartha

    07/23/2017, 10:21 PM
    Q: Has anyone seen the Some(value) syntax when using an optional parameter in a Schema Extension? I don't know how to deal with it? @nilan
    n
    • 2
    • 18
  • b

    be4r

    07/23/2017, 10:35 PM
    how can i utilize apollo's
    refetchQueries
    with data returned from the mutation?
  • b

    be4r

    07/23/2017, 10:36 PM
    this is regarding create mutations where I wont know the
    id
    to refetch until afterwards
    n
    • 2
    • 3
  • v

    victoryapcheeann

    07/23/2017, 11:19 PM
    Hi everyone, I tried to run the example using graphcool for Expo and auth0 and I encountered the following error ERROR: could not create user: {"graphQLErrors":[{"locations":[{"line":2,"column":3}],"path":["createUser"],"code":3025,"message":"The provided idToken is invalid. Please see https://auth0.com/docs/tokens/id_token for how to obtain a valid idToken","requestId":"cj5hcc0ra63040114pcytnade"}],"networkError":null,"message":"GraphQL error: The provided idToken is invalid. Please see https://auth0.com/docs/tokens/id_token for how to obtain a valid idToken"} May I know why the idToken is invalid and how to resolve it?
    a
    n
    • 3
    • 5
  • j

    jdspugh

    07/24/2017, 12:42 AM
    Is there an easy way to seed graph.cool with test data? I’ve just come from Rails where it’s really easy with the Faker gem.
    a
    • 2
    • 2
  • m

    matty

    07/24/2017, 1:08 AM
    -.js
  • m

    matty

    07/24/2017, 1:09 AM
    1) tips on how to cut down the verbosity of this mutation?
    n
    a
    • 3
    • 2
  • m

    matty

    07/24/2017, 1:09 AM
    2) lets say I forget to get the new "location" value in the query, apollo appears to hold on to the old one in its normalized cache. how can a mutation tell apollo to drop the entire cache entry?
    n
    • 2
    • 1
  • m

    mike.johnson

    07/24/2017, 3:51 AM
    is there a way to deleteAll a node?
  • m

    mike.johnson

    07/24/2017, 3:51 AM
    without using the "data reset" option
    n
    • 2
    • 1
  • s

    sonofjack

    07/24/2017, 4:26 AM
    Hey guys, am interested in using graph.cool data in one of my elixir apps, does anyone have any experience on integrating graph.cool in an elixir app, or could you point in the a direction of a tutorial, this would be much appreciated 🙂
  • m

    matty

    07/24/2017, 6:18 AM
    @migrationValue(value: [])
    this doesn't appear to be working
    n
    • 2
    • 1
  • s

    sorenbs

    07/24/2017, 8:23 AM
    Hi @sonofjack There is an Elixir chapter on https://www.howtographql.com/graphql-elixir/0-introduction/ It’s focusing on building a GraphQL server, so it might not be directly applicable to you. If that is the case, maybe you could open an issue discussing adding a new chapter for elixir apps. https://github.com/howtographql/howtographql
    👍🏻 1
  • p

    picosam

    07/24/2017, 8:43 AM
    @be4r Is the original query that you’re trying to refetch one that would include the item just created by the mutation? If not, why are you trying to use
    refetchQueries
    vs. say
    update
    ?
  • s

    sonofjack

    07/24/2017, 10:34 AM
    @sorenbs thank you
    👍 1
  • p

    picosam

    07/24/2017, 12:01 PM
    A strange error is happening here! I’m trying to set a field to
    null
    value, and I’m getting the following:
    A Unique constraint would be violated on
    and then the field name
  • p

    picosam

    07/24/2017, 12:02 PM
    The field is indeed unique, but not required. Doesn’t that mean I can simply set it to
    null
    if needed?
    n
    d
    • 3
    • 26
  • m

    mwickett

    07/24/2017, 1:45 PM
    Schema + Enum question: Can I set a defaultValue on an enum field? (ie. specify a default enum value?)
    n
    h
    • 3
    • 17
  • m

    mwickett

    07/24/2017, 2:04 PM
    Is there any issue with getting the userId from a graphcool token, rather than running a
    currentUser
    query on every component that needs to access a user ID?
    n
    • 2
    • 4
  • d

    dankent

    07/24/2017, 2:08 PM
    Are there any plans to support request pipeline functions that are triggered by relationships being connected or disconnected?
    n
    • 2
    • 4
  • p

    picosam

    07/24/2017, 2:11 PM
    By the way, for server side subscriptions, how do we get
    previousValues
    ? Is it simply
    event.data.previousValues.fieldName
    ?
1...283284285...637Latest