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

    mmw

    06/22/2017, 2:55 PM
    does that make sense @dk0r ?
  • m

    mmw

    06/22/2017, 2:56 PM
    you should be able to verify if that is the case in your code easily
  • d

    dk0r

    06/22/2017, 3:02 PM
    @mmw I resolved this from a discussion in the apollo slack chann. I discovered that using fragments/filter allows you to consolidate to the number of queries to the server. For example, we can have a parent component submit a single query using the combined fragments of it's children. Then the parent passes down the combined result and children use
    filter
    to get only the data they separately require.
  • m

    mmw

    06/22/2017, 3:03 PM
    yeah your last sentence is what I was trying to say
  • m

    monkeybonkey

    06/22/2017, 3:54 PM
    regarding algolia search integration - does the sync trigger on object update was well as on object creation? for instance I have an algolia integration query that says only sync “isPublic” objects - when that object is updated to isPublic=true - does the algolia sync pick up the object and insert it automatically?
  • p

    paulk

    06/22/2017, 4:07 PM
    Is there a new way to add the project ID to Apollo in the freecom tutorial?
  • p

    paulk

    06/22/2017, 4:07 PM
  • p

    paulk

    06/22/2017, 4:08 PM
    ^^ tutorial shows that, but I don't see that anywhere in
    index.js
    (https://github.com/graphcool-examples/freecom-tutorial/blob/master/freecom-05-final/frontend/src/index.js)
  • a

    agartha

    06/22/2017, 4:11 PM
    https://github.com/graphcool-examples/freecom-tutorial/blob/master/freecom-05-final/frontend/src/index.js#L18
  • a

    agartha

    06/22/2017, 4:11 PM
    I see it's checked in with a fixed projectid
  • a

    agartha

    06/22/2017, 4:11 PM
    Also, this line: https://github.com/graphcool-examples/freecom-tutorial/blob/master/freecom-05-final/frontend/src/index.js#L11
  • p

    paulk

    06/22/2017, 4:13 PM
    Doh. Thanks! Happen to know where to find all the customer id, name tokens, and secrets?
  • p

    paulk

    06/22/2017, 4:14 PM
  • p

    paulk

    06/22/2017, 4:14 PM
    Don't see them in the console. It's my first time using Graphcool.
    a
    • 2
    • 1
  • b

    be4r

    06/22/2017, 4:16 PM
    is there a way to filter a query to return all values that partially match? If I filter by name: "ba" then I want it to return bar, bat, bag, etc
    n
    n
    • 3
    • 28
  • c

    ckelley

    06/22/2017, 4:27 PM
    Are there plans for a step in the RP that behaves like a SSS, except is executed synchronously? I have a particular post-create/update calculation I'd like to run + save synchronously before returning a response to the client.
    n
    • 2
    • 3
  • o

    onelastjedi

    06/22/2017, 4:39 PM
    Hi, all! Does anyone know about error with subscriptions endpoint? Today i got: "WebSocket connection to 'wss://subscriptions.graph.cool/v1/ failed: Connection closed before receiving a handshake response"
    👍 1
    ✅ 1
    n
    • 2
    • 4
  • p

    picosam

    06/22/2017, 4:44 PM
    Hello! Is it possible to restrict the updates of a certain field to certain values of an enum only, according to the role of the user executing the mutation?
    n
    • 2
    • 72
  • m

    mike.johnson

    06/22/2017, 4:54 PM
    Whats the best way to add a counter cache to a node counting a relation?
  • c

    ckelley

    06/22/2017, 5:53 PM
    Having trouble getting relay pagination working; the
    hasNextPage
    field on
    pageInfo
    returns
    false
    for all the configs i've tried even when there are more pages. anyone else had this issue?
    n
    • 2
    • 4
  • b

    be4r

    06/22/2017, 6:09 PM
    im trying to delete a node, but upon deletion, it just comes back automatically.
    n
    • 2
    • 20
  • d

    dk0r

    06/22/2017, 6:57 PM
    Why is the
    createPokemon
    function duplicated here?
    a
    n
    a
    • 4
    • 20
  • d

    dk0r

    06/22/2017, 6:57 PM
    https://www.learnapollo.com/tutorial-react-native/react-native-05
  • a

    agartha

    06/22/2017, 7:10 PM
    Does GraphQL support a INSERT ... FROM ... syntax, where you use the query result in a mutation, in a single call?
    d
    n
    • 3
    • 87
  • a

    agartha

    06/22/2017, 8:49 PM
    Is the field alias prefix functionality documented somewhere?
    n
    • 2
    • 6
  • a

    agartha

    06/22/2017, 9:21 PM
    Internal error on update User in databrowser: cj48xk4ug382f0199o84a94wi
    n
    • 2
    • 11
  • j

    joshjoe

    06/22/2017, 9:45 PM
    How would I express, in my schema, that I’d like a Person to have only one Email of the enum type
    primary
    ?
    a
    • 2
    • 2
  • p

    picosam

    06/22/2017, 10:08 PM
    Hello@late-sleepers or early-wake-uppers! So, if I need users with a privileged role to be able to access (read) more fields than users with a "standard" role, do I have to create two separate permission queries, or can this be combined in a single one?
    a
    • 2
    • 3
  • s

    sebas.i

    06/22/2017, 11:38 PM
    hi, i got a server error
    Request ID: cj492g4akrjv801818xeurxp0
    n
    • 2
    • 2
  • v

    virtualirfan

    06/22/2017, 11:56 PM
    Given:
    Copy code
    type Instance implements Node {
      createdAt: DateTime!
      id: ID! @isUnique
      name: String!
      updatedAt: DateTime!
    }
    Why does this, in the playground, highlight an error asking for a clientMutationId to be added.
    Copy code
    mutation createInst {
      createInstance(input: {name: "OLTP VM"}) {
        instance {id}
      }
    }
    Once this following is done, it works:
    Copy code
    mutation createInst {
      createInstance(input: {name: "OLTP VM", clientMutationId: "X"}) {
        instance {id}
      }
    }
    (Relay API) Where did clientMutationId come from? It's not in the type spec.
1...241242243...637Latest