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

    pnicolaou

    09/16/2017, 3:52 PM
    instead of role: ADMIN
  • p

    pnicolaou

    09/16/2017, 3:52 PM
    userType: { role: admin }
  • p

    pnicolaou

    09/16/2017, 3:52 PM
    or something like that? @sebd
  • s

    sebd

    09/16/2017, 3:53 PM
    no because 'role' doesn't mean anything outside of the example does it?
  • s

    sebd

    09/16/2017, 3:53 PM
    (this is my code):
    Copy code
    query permitEditGalleries($user_id:ID!){
      SomeUserExists(filter: {
        id: $user_id
        userType: Admin
      })
    }
  • p

    probablycorey

    09/16/2017, 7:59 PM
    Does graph.cool provide something like "find one by x" in it's API
  • p

    probablycorey

    09/16/2017, 8:00 PM
    I can do things like
    Copy code
    query {
      allBooks(first: 1, filter: {name: "To Kill a Mockingbird"}) {
        id
      }
    }
    y
    • 2
    • 2
  • p

    probablycorey

    09/16/2017, 8:01 PM
    but that will return an Array instead of a single result. Is this something people just deal with or do they write a Function to do a transformation?
  • p

    proteus

    09/16/2017, 9:26 PM
    Is there a guide on how to actually use Auth0 with Graph.cool and not just how to click on some pretty buttons?
    s
    • 2
    • 4
  • c

    coolboyjules

    09/17/2017, 3:01 AM
    hi all. quick question. is it possible to do a batch mutation, i.e., pass in an array of input types to a mutation and have it create 500 nodes?
    a
    • 2
    • 1
  • c

    coolboyjules

    09/17/2017, 3:31 AM
    i am just reading here https://github.com/graphcool/graphcool/issues/318 that it looks like only scalar objects are allowed in mutations. does this include JSON?
    a
    • 2
    • 1
  • s

    samandarr

    09/17/2017, 10:53 AM
    Hello everyone!
  • s

    samandarr

    09/17/2017, 10:53 AM
    How to create Schema Extension Function? Is it only for beta-testers?
  • s

    samandarr

    09/17/2017, 10:54 AM
    if so how I can be beta user?
    ✅ 1
    a
    • 2
    • 2
  • j

    jvbianchi

    09/17/2017, 1:35 PM
    What is the limit of nodes in a batch of create mutations?
    n
    • 2
    • 1
  • t

    tfiwm

    09/17/2017, 6:15 PM
    hello everybody 😉 i am trying to create a custom query with a function but really don’t understand in the doc how to do this
  • t

    tfiwm

    09/17/2017, 6:16 PM
    where can i put my js function for a custom query?
    a
    • 2
    • 2
  • d

    dannyql

    09/17/2017, 7:27 PM
    @tfiwm what is custom about your query? Is there a reason you wouldn't customize your query on the front end?
    t
    • 2
    • 6
  • p

    proteus

    09/17/2017, 7:34 PM
    So… Auth0 tokens are by default encoded using RS256, but Graph.cool does not seem to support it. Exactly how are we supposed to use Auth0 with Graph.cool?
    a
    • 2
    • 6
  • s

    senorcodecat

    09/17/2017, 7:48 PM
    Absolutely loving working with Graph.cool. Keep it up, gents. Speeding up my time to launch tremendously.
    🎉 4
    💚 2
    💪🏻 2
    graphcool 3
    n
    • 2
    • 1
  • z

    zaksingh

    09/17/2017, 10:49 PM
    What is the best way to delete all data related to a node? I have a
    class
    type which contains a bunch of relations. How do I delete the thing on the other side of the relation?
    a
    • 2
    • 4
  • e

    eder

    09/18/2017, 12:30 AM
    Help! console.log('whatever') never executed
    -.txt
  • e

    eder

    09/18/2017, 12:30 AM
    I'm using redux-form
  • e

    eder

    09/18/2017, 12:31 AM
    this is my Component complete
  • e

    eder

    09/18/2017, 12:31 AM
    -.txt
  • c

    coolboyjules

    09/18/2017, 1:48 AM
    @eder im gonna guess there's an error here
  • c

    coolboyjules

    09/18/2017, 1:48 AM
    Copy code
    js
    const result = await this.props.client.query({
              query: ALL_STORES_SEARCH_QUERY,
              variables: { 
                  searchText:values.searchText 
                }
            })
    👍 1
    e
    a
    • 3
    • 8
  • c

    coolboyjules

    09/18/2017, 1:59 AM
    does anyone know if you can use
    async/await
    with Graphcool funcs?
    😅 1
    a
    • 2
    • 5
  • m

    matty

    09/18/2017, 2:48 AM
    trying to get some good practices in place now that we're about to go live
  • m

    matty

    09/18/2017, 2:48 AM
    anyone know of a good recommendation for production backups & restorations? only thing i can find right now is the Export Data button in Settings, so i've got a chromeless script to download the data periodically, but I can't find anyway to import the data
1...341342343...637Latest