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

    jt9001

    10/02/2017, 7:18 AM
    Any idea why I'd be getting a "Error: Insufficient permissions for this mutation" when trying to run a create mutation with graphql-request? I've never seen this error before.
    n
    • 2
    • 4
  • m

    mael

    10/02/2017, 9:25 AM
    Hi guys πŸ˜„ Do you know why, when I make a relationship into my mutation, none of my webhooks are called? e.g. - I have my schema
    order
    and I want to attach a
    discount
    . So I update
    order
    with
    discountId
    . It works, discount is properly attached to
    order
    , but it does not call
    transform_argument
    on my
    order
    or on my
    discount
    (and I've created pipelines functions for both) πŸ‘€
    n
    • 2
    • 2
  • t

    taikn

    10/02/2017, 10:19 AM
    Hello, I've a few questions: 1) I am a part of Schema Extensions Beta, does it automatically make me a part of New CLI Beta 2) Since Graphcool platform is shifting its focus towards managing projects through the CLI, how can I create a new CLI compatible project configuration out of an existing project, which is managed through console?
    n
    j
    • 3
    • 6
  • c

    clem

    10/02/2017, 11:06 AM
    are you down at the moment? I can't access my console
    u
    n
    • 3
    • 4
  • d

    devan

    10/02/2017, 12:47 PM
    Welcome @Lara, @Menegazzi, and @Johanna πŸ‘‹
    πŸ‘‹ 2
  • m

    manas

    10/02/2017, 2:10 PM
    hi all, is this the right place for some quick troubleshooting tips?
    d
    • 2
    • 1
  • m

    mwickett

    10/02/2017, 3:08 PM
    Has anyone integrated something like Sentry (Raven) or Rollbar for non-client side error tracking (ie. in functions) ?
  • t

    tekk

    10/02/2017, 4:19 PM
    I'm a little confused about the usage of
    authenticateAnonymousUser()
    . I can create the user using a secret string, but there is other information I would like to attach to the User record. Would I just subsequently run a
    updateUser
    mutation as well, or is there a better way to do it?
  • p

    pcooney10

    10/02/2017, 5:16 PM
    Is there any way to do a nested create mutation without referencing the id of the connected field?
    a
    • 2
    • 3
  • r

    rein

    10/02/2017, 6:16 PM
    hey guys, can you make a combination of 2 fields unique in graph.cool?
    a
    • 2
    • 3
  • r

    rein

    10/02/2017, 6:17 PM
    like the combination of a user and a post id in the likes table
  • j

    jferrettiboke

    10/02/2017, 8:03 PM
    Hey folks! Quick question. Is a good practice link the
    File
    type to a field (making a relation) or link the file URL directly to the field as a
    String
    ? Let's say the field is called
    photo
    within
    User
    type.
  • j

    joar

    10/02/2017, 8:09 PM
    @jferrettiboke definitely the file type as a relation. More future proof by far
  • a

    ameistad

    10/02/2017, 8:29 PM
    I just set some permissions, I can perform a normal create mutation just fine, but I can't perform a nested create mutation. I have not altered permissions for the parent or set any relation permissions. Is there something I should be aware of when using nested mutation and permissions?
  • a

    arthur

    10/02/2017, 8:43 PM
    Hi everyone! I was wondering if someone already tried to use the Algolia extension and got the same pb than me (and solved it, if possible πŸ™‚ ). My issue is that my algolia index is configured on my node A and that the node B is a child node of A (such as : { A { id name B { id } } }, the problem being that when I update the content of the node B without updating node A, my algolia index for node A is not updated with data from the new node B. Does anyone know how to solve that? Thank you very much in advance guys!
  • c

    chandlervdw

    10/02/2017, 9:06 PM
    @nilan is there a way to filter a relation by the
    user.id
    within a user query?
    Copy code
    const userQuery = gql`
      query userQuery {
        user {
          id
          organizations {
            id
            name
            campaigns(filter: { users_some: { id: user_id } }) {
              id
              name
              description
            }
          }
        }
      }
    `;
    That fails with the
    user_id
    reference (obviously)
    a
    • 2
    • 2
  • r

    Radiegtya

    10/03/2017, 1:59 PM
    Hello, How to pass token at apollo client?
    n
    n
    • 3
    • 4
  • c

    Clay

    10/03/2017, 4:36 PM
    Hi I’ve been trying to upload picture I downloaded from Facebook in the schema extension for couple days without success now 😒
    Copy code
    function uploadProfilePicToGraphCool(picture) {
        var data = new FormData()
        data.append('data', picture)
        return fetch('<https://api.graph.cool/file/v1/<ENDPOINT>>', {
          method: 'POST',
          body: data
        }).then((response) => {
          return response.json()
        }).then((image) => {
          return image
        })
      }
    I’m currently getting
    status\":500,\"statusText\":\"Internal Server Error
    and
    Copy code
    "FetchError\",\"message\":\"invalid json response body at <https://api.graph.cool/file/v1/cj3qwr1jgbx060113fkcpa7tq> reason: Unexpected end of input\",\"type\":\"invalid-json\"}
    Does anyone know what could have possibly gone wrong?
  • k

    kenyk7

    10/03/2017, 4:47 PM
    I need a solution to define rules where the data is not repeated as in the following photo. ref:https://www.awesomescreenshot.com/image/2862343/c4e0b16262dfceec97b619a8db4d39ff
    n
    e
    • 3
    • 26
  • b

    be4r

    10/03/2017, 5:25 PM
    i noticed in the ssr docs for apollo graphql the Html function isnt including the bundle.js
    Copy code
    function Html({ content, state }) {
      return (
        <html>
          <body>
            <div id="content" dangerouslySetInnerHTML={{ __html: content }} />
            <script dangerouslySetInnerHTML={{
              __html: `window.__APOLLO_STATE__=${JSON.stringify(state).replace(/</g, '\\u003c')};`,
            }} />
          </body>
        </html>
      );
    }
    without including the bundle.js script, js wont work. But if I do, the queries refetch after the server renders static markup.
  • e

    eruby

    10/03/2017, 6:00 PM
    are you using react, vue or other?
  • n

    nilan

    10/03/2017, 6:08 PM
    Hey <!everyone>, I'm extremely excited to announce the official release of resolvers πŸŽ‰ Resolvers let you easily extend your Graphcool API and are crucial for any GraphQL server. You can use them to wrap an existing API, implement custom authentication and much more. Check out the full announcement here: https://blog.graph.cool/extend-your-graphcool-api-with-resolvers-ca0f0270bca7 A huge shoutout to the community who provided great feedback for this feature 🀘
    graphcool 18
    πŸ’― 17
    ‼️ 7
    🦜 50
    πŸ™Œ 15
    metal 16
    πŸ‘ 16
    πŸš€ 9
    parrotwave1 5
    😎 8
    ✌️ 5
    parrotwave7 5
    parrotwave2 5
    😻 8
    sadparrot 6
    πŸ”₯ 5
    parrotwave3 5
    ❀️ 13
    🍻 8
    πŸ’š 6
    βœ… 1
    πŸŽ‰ 40
    graphql 14
    πŸ‘ 7
    πŸ’ͺ🏻 2
    q
    • 2
    • 3
  • b

    be4r

    10/03/2017, 6:08 PM
    @eruby i am using react
    e
    • 2
    • 18
  • p

    peterp

    10/03/2017, 6:08 PM
    congrats everyone!!
    πŸ™ 3
  • m

    mael

    10/03/2017, 6:09 PM
    Yeaaaah😎
    😎 3
  • a

    auser

    10/03/2017, 6:12 PM
    !!!!!!! @nilan
  • t

    tomhut

    10/03/2017, 6:12 PM
    Congrats! I have found these to work amazingly well in the beta, encourage everyone to try them. Very powerful.
    πŸ’― 1
  • a

    auser

    10/03/2017, 6:12 PM
    That’s SO COOL
    🦜 3
    n
    • 2
    • 2
  • c

    chandlervdw

    10/03/2017, 6:12 PM
    sweet, been looking forward to this
    n
    • 2
    • 1
  • n

    nilan

    10/03/2017, 6:12 PM
    RESOLVE ALL THE THINGS
1...357358359...637Latest