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

    drk

    06/11/2017, 10:35 PM
    using graphcool cli
  • l

    lancej

    06/12/2017, 12:11 AM
    Does the web or cli interface have a way to import and export the permisson rules? It would be great to do testing against a non production account making sure there are no holes in security and data access first, but manually applying the rules to the types would be time consuming and error prone
    a
    n
    • 3
    • 5
  • u

    user

    06/12/2017, 7:35 AM
    @agartha commented on @dtuite’s file https://prisma.slack.com/files/U5K3L5Q20/F5RU27EBV/update_during_write_.js: @dtuite I assume recipient is actually a relation?
    Update_during_write_.js
  • u

    user

    06/12/2017, 7:37 AM
    @agartha commented on @dtuite’s file https://prisma.slack.com/files/U5K3L5Q20/F5RU27EBV/update_during_write_.js: If that's the case, I think your best option is to create a server-side subscription for create, and call the relation mutation based on your check...
    Update_during_write_.js
  • u

    user

    06/12/2017, 7:39 AM
    @agartha commented on @dtuite’s file https://prisma.slack.com/files/U5K3L5Q20/F5RU27EBV/update_during_write_.js: Or, you can do it in transform_argument, but then you have to create a new mutation based on your check, and throw an error to prevent the current mutation from being processed further.
    Update_during_write_.js
  • e

    eliezedeck

    06/12/2017, 8:31 AM
    When any entry is deleted after a
    deleteSomething
    mutation, how to I also clear that entry inside Apollo’s cache? I’m using the Apollo dev tools, and I can still see the deleted entry inside the Store
    ❓ 1
    n
    • 2
    • 2
  • u

    uzu

    06/12/2017, 9:25 AM
    hello_guys__im_working_on_graphcool_function__and_i_try_to_make_a_mutation_inside_my_current_mutation__lets_say_i_have_a_array_of_tags__i_determine_if_one_or_more_tags_exist_in_the_api__via_a_query__and_then_the_number_of_tags_to_create__via_a_mutation_.j
  • u

    user

    06/12/2017, 9:26 AM
    @uzu commented on @uzu’s file https://prisma.slack.com/files/U4VF6PLCF/F5SV974EB/hello_guys__im_working_on_graphcool_function__and_i_try_to_make_a_mutation_inside_my_current_mutation__lets_say_i_have_a_array_of_tags__i_determine_if_one_or_more_tags_exist_in_the_api__via_a_query__and_then_the_number_of_tags_to_create__via_a_mutation_.j: i got this error: {"error":"Syntax error while parsing GraphQL query. Unexpected end of input, expected OperationDefinition, FragmentDefinition or TypeSystemDefinition (line 1, column 1):\n\n^"}
    hello_guys__im_working_on_graphcool_function__and_i_try_to_make_a_mutation_inside_my_current_mutation__lets_say_i_have_a_array_of_tags__i_determine_if_one_or_more_tags_exist_in_the_api__via_a_query__and_then_the_number_of_tags_to_create__via_a_mutation_.j
  • n

    nilan

    06/12/2017, 9:26 AM
    Hey @uzu, what's the value of
    tagsToCreate
    and
    userId
    ? 🙂
  • n

    nilan

    06/12/2017, 9:27 AM
    actually @uzu, could you please post this question in the forum: https://graph.cool/forum/c/development? It'll be helpful for many developers
  • u

    user

    06/12/2017, 9:28 AM
    @uzu commented on @uzu’s file https://prisma.slack.com/files/U4VF6PLCF/F5SV974EB/hello_guys__im_working_on_graphcool_function__and_i_try_to_make_a_mutation_inside_my_current_mutation__lets_say_i_have_a_array_of_tags__i_determine_if_one_or_more_tags_exist_in_the_api__via_a_query__and_then_the_number_of_tags_to_create__via_a_mutation_.j: my mutation works on the playground and fetch wotks ith my query but i cant have the things work with mutation, is this a limitation ? (i suppose not but i prefer ask :D)
    hello_guys__im_working_on_graphcool_function__and_i_try_to_make_a_mutation_inside_my_current_mutation__lets_say_i_have_a_array_of_tags__i_determine_if_one_or_more_tags_exist_in_the_api__via_a_query__and_then_the_number_of_tags_to_create__via_a_mutation_.j
  • u

    uzu

    06/12/2017, 9:30 AM
    i start a thread in the forum thanks 😄
    👍 1
    n
    • 2
    • 2
  • i

    idkjsx

    06/12/2017, 9:57 AM
    whats up, folks. How do you associate a graphql-up generated endpoint with your account?
    a
    • 2
    • 2
  • l

    lancej

    06/12/2017, 10:46 AM
    I am trying to use graphql.request to work but the reponse data is undefined... was thinking this be the result from the service. Maybe obvious to others
    Copy code
    import { request } from 'graphql-request'
    const mutation = `{ 
      mutation signinUser($email: String!, $password: String!) {
        signinUser(email: { email: $email, password: $password }) {
          token, 
          user {
            id
          }
        }
      }
    }`
    const variables = {
          email,
          password
     }
    request('<https://api.graph.cool/simple/v1/xkjdvsdf>', mutation, variables)
              .then(data => {
                console.log(data)
    })
    n
    • 2
    • 7
  • p

    picosam

    06/12/2017, 1:12 PM
    Hello! So we don’t have access to resolvers on graph.cool, or am I mistaken?
  • p

    picosam

    06/12/2017, 1:12 PM
    (might be a super-noob question, sorry, I have no idea what I’m talking about, but I know why I’m asking :D)
    n
    a
    • 3
    • 26
  • m

    mattc

    06/12/2017, 1:15 PM
    Has anyone had any luck getting apollo to work with angular cli?
    n
    • 2
    • 7
  • m

    mattc

    06/12/2017, 1:16 PM
    All the tutorials and questions I'm finding about this are for the angular-cli beta
  • d

    dbkooper

    06/12/2017, 1:17 PM
    Hey! How do i create data based on api request something like activity tracking; can you share if that is possible?
    n
    • 2
    • 6
  • e

    eliezedeck

    06/12/2017, 1:24 PM
    @nilan I’m trying this code to delete an entry from cache. It is obvious to me that it is always related to an existing query, and I don’t see the Apollo cache being updated at all, only the query. So, there are lots of entries remaining inside the Apollo cache, which is not a good thing. What can I do to remove the cache? [I have
    postId
    as the ID of the Post to be deleted,
    deletePostMutation
    as the mutation GQL that I import from another file]
    How_to_do_delete_entry_from_cache_.js
  • e

    eliezedeck

    06/12/2017, 1:26 PM
    allPostsQuery
    is also an imported GQL
  • n

    nilan

    06/12/2017, 1:26 PM
    This is either a known limitation or a bug with
    apollo-client
    or
    react-apollo
    . I think a question on StackOverflow should be the best formar to discuss it.
  • e

    eliezedeck

    06/12/2017, 1:27 PM
    Ah, ok... thanks. At least it’s not just me then 🙂
  • e

    eliezedeck

    06/12/2017, 1:27 PM
    Or
    vue-apollo
    too, because I’m using VueJS
  • n

    nilan

    06/12/2017, 1:28 PM
    oh, I see
  • n

    nilan

    06/12/2017, 1:28 PM
    hmm
  • n

    nilan

    06/12/2017, 1:28 PM
    then actually
    apollo-client
    because it manages the store
  • e

    eliezedeck

    06/12/2017, 1:28 PM
    indeed
    d
    a
    • 3
    • 6
  • d

    dk0r

    06/12/2017, 1:45 PM
    [off-topic] Anyone here using digits (sms key based sign in https://get.digits.com/ ) ? I don't seem to understand how this type of authentication will work if a user ends up obtaining a new phone number..
    e
    a
    • 3
    • 10
  • u

    user

    06/12/2017, 2:46 PM
    @eliezedeck commented on @eliezedeck’s file https://prisma.slack.com/files/U5M2KE6P5/F5SB3CWFP/how_to_do_delete_entry_from_cache_.js: @agartha I remember why it didn’t work, nor was it the right thing to do. So, first, the
    cache
    is modifyable, and when you write it back, it will only affect the query in question, not the whole storage; the whole cache storage is what I’m trying to update here. Secondly, I tried to modify the
    store.data
    , which contains entries like
    Post:azeauzeiorpaehyioptzetzer
    and delete that manually, but the data remains the same in the cache.
    How_to_do_delete_entry_from_cache_.js
1...226227228...637Latest