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

    juicycleff

    12/28/2017, 6:49 AM
    Hi all, I'm new to graphql and would like to know if there is a way to use realtime subscription on android or iOS, thank you
  • e

    efvaldez

    12/28/2017, 7:23 AM
    Hi All, I created a subscription with [CREATED,UPDATED,DELETED] it works fine on created. but when I tried updating a node on playground, as I check my client, the object is added twice on my list of objects. Also when I delete something from the playground the results of my subscription is the remaining nodes + a null object, which causes errors.Why so? Thanks
    m
    • 2
    • 1
  • u

    Urs

    12/28/2017, 8:53 AM
    This night I imported some data an now I get a Server Error 500. Tried to react Graphcool-Support by Chat but there is no reaction. I can access my Schemas but not my Data. Has anyone an Idea or does any one know another way to contact the support?
    ✅ 1
  • s

    Sam Abiassi

    12/28/2017, 9:44 AM
    Hi guys! Quick question here: If I understand correctly, subscription only triggers when an event occurs. But how do I get to do the first loading of the datas I need?
    n
    • 2
    • 1
  • a

    andrei_calazans

    12/28/2017, 10:14 AM
    @Sam Abiassi from what i Understand you should be querying for that data as a normal query, then add your subscription to update that query when ever there is an event
    👍 2
  • s

    Sam Abiassi

    12/28/2017, 10:15 AM
    hm... upon further research, if I'm using React, should I put the first query in the state of the component, and then use setState whenever an event occurs?
  • a

    andrei_calazans

    12/28/2017, 10:19 AM
    are you using any sort of graphql client ? like relay or Apollo. Like for example if you use Relay client you won’t have to worry much about state managing as long as querying goes. but if you wanted to handle the state yourself, you could use redux and then according to the response from your graphql server you can update your state. take a look into Relay or Apollo
  • s

    Sam Abiassi

    12/28/2017, 10:21 AM
    I'm using Apollo actually, but I have a really hard time wrapping my head around the whole thing. Didn't find any "clear" tutorial on the matter.
    a
    • 2
    • 3
  • s

    Sam Abiassi

    12/28/2017, 10:34 AM
    Ok, for those who are in need of something like what I've been looking for, this is the most accessible article yet : https://dev-blog.apollodata.com/tutorial-graphql-subscriptions-client-side-40e185e4be76
    n
    a
    n
    • 4
    • 8
  • r

    rein

    12/28/2017, 1:38 PM
    Is there anyone here who was able to connect graphcool to elastic search?
  • n

    notrab

    12/28/2017, 1:49 PM
    Howdy Graphcoolers! I'm looking into the latest version of the Graphcool CLI... Are the days gone deploying functions to Graphcool in favour of running my own server?
    l
    h
    • 3
    • 2
  • d

    Dninja

    12/28/2017, 5:09 PM
    with graphcool mutations do I need to create the models before hand or can I post to Gcool and it generates the model?
  • d

    Dninja

    12/28/2017, 5:09 PM
    I already have a graphserver and firebase made, i don't want to remake everything, i'd rather push data to
  • p

    portenez

    12/28/2017, 6:13 PM
    is there a bug with
    graphql-playground
    and fragments? something like:
    Copy code
    fragment characterFields on Character {
      name
    }
    
    query {
      character {
        ...characterFields
      }
    }
    is being marked as an error by
    graphql-playground
    . The query actually works, it's not marked as an error in graphiql
    n
    • 2
    • 4
  • j

    juicycleff

    12/28/2017, 6:59 PM
    Please is there any approach to websocket with apollo client for android?
  • r

    rein

    12/28/2017, 7:24 PM
    @nilan will there be a similar way of visualizing and interacting with your data in the 1.0 api as there is right now in the framework? I couldn't find it in the roadmap
    m
    • 2
    • 6
  • b

    bobbyt

    12/28/2017, 8:51 PM
    Hi! Is it possible to filter a nested field on an authenticated query, (i.e., based on that user’s ID)? For example, I have an authenticated query `userQuery.js`:
    Copy code
    export const CURRENT_USER_QUERY = gql`
      query currentUserQuery {
        user {
          ...UserFragment,
        }
      }
      ${USER_FRAGMENT}
    `;
    And here is the
    USER_FRAGMENT
    portion:
    Copy code
    const USER_FRAGMENT = gql`
      fragment UserFragment on User {
        id
        username
        friends {
          id
          username
          chatGroups(filter: { users_some: { id: *_[CURRENT USER QUERY ID]_* }}) {
            id
            users {
              id
              username
            }
          }
        }
      }
    `;
    
    export default USER_FRAGMENT;
    Since a
    friend
    can belong to many chat groups I only want to return the chat groups that contain the current user as well as the friend (using the
    users_some
    filter). I don’t want to have to pass a userId variable to the query since it’s authenticated. Is this possible? Thanks in advance!
    m
    • 2
    • 4
  • n

    noahdavis

    12/28/2017, 9:08 PM
    Hi everyone, happy to be a part of this group!
    👋 5
  • r

    ryan

    12/29/2017, 12:51 AM
    Hi, everyone, trying to follow this guide here for a dry-run of migrating from legacy project https://github.com/graphcool/framework/issues/1186 I cloned the project on the console, install the GraphCool CLI (v0.11.2), and obtain the service definition. I'd like to deploy locally and test my app against it and also get familiar with the new GraphCool framework and commands, but when I run >gcf deploy, I don't seem to be able to choose the option to deploy locally, am I missing something? (I already have docker installed on my mac). Any help is appreciated!
  • m

    markmiller21

    12/29/2017, 2:26 AM
    Hey everyone! Been using graphcool for about 5 weeks now and as we are growing I want to setup a production & dev DB instance to be safe. I have been backing everything up incase something happens but would rather just have 2 separate DBs (perhaps even 3 — QA). Would has been ya’ll experience with this? Just setup 2 different where the schemas and resolvers essentially mirror one-another? I have minimal backend experience and FWIW it is a React Native App (built with expo).
  • d

    dunghoangvan

    12/29/2017, 6:51 AM
    Hi everyone, I'm working on unit test for my GraphQL server. Should I test the queries and mutations via HTTP endpoint or just test their resolvers? Its kind of confusing with a newbie ^^
    j
    • 2
    • 2
  • d

    Daniel K.

    12/29/2017, 9:47 AM
    hi, I am wondering, is there some notion of multiple
    graphcool.yml
    files? I don't see anything similar in github issues my use case is simply to support modular architecture and while I can have separate
    types
    file, I would also like to have permissions coupled with that file
  • t

    tfiwm

    12/29/2017, 10:45 AM
    what is the right way now to use the new graphcool framework? npm install -g graphcool-framework or graphcool@beta ???
    d
    n
    +2
    • 5
    • 7
  • d

    Daniel K.

    12/29/2017, 11:17 AM
    yea I am also rather lost coming here after 2 months, so many changes and different versions, I am honestly unsure what to use 🙂
  • o

    Or

    12/29/2017, 11:34 AM
    Hi, I'm trying to set up jest/chromeless serverless test automation. and I'm seeing some stability issues with launching chrome in lambda. I'm looking for guidance how to address it
  • o

    Or

    12/29/2017, 11:37 AM
    What I see is that in some cases. the chrome launcher reports it took 0ms to launch, and when that happens. the next attempt to make an API call results in ECONNREFUSED or ECONNREST. I assume this is a container lambda is reusing that had chrome already running. I don't mind doing some work and contribute to chromeless stability, but I need some guidance with the right apporach to this issue.
  • m

    max

    12/29/2017, 12:30 PM
    Hey does anyone know if it's possible to load environmental variables into graphcool.yml using something like:
    Copy code
    environment:
              AWS_BUCKET: ${file(./config/config.yml):AWS_BUCKET}
  • j

    jongaveli

    12/29/2017, 12:52 PM
    Hey i am trying to integrate slack with graphcool so that i can recieve notification any time data is added to graphcool
    m
    • 2
    • 3
  • k

    korr0101

    12/29/2017, 2:59 PM
    Hi all! I've a question regarding
    import
    feature of graphcool. As far as I understand, it currently supports only creating new items (along with their relations) and it doesn't work for updating existing data (as well as updating their relations), cause it throws smth like duplicate error. So my question is: am I doing smth wrong and
    import
    api actually supports updating existing data or it doesn't work this way? If it doesn't, are there any workarounds for this and if this is going to be added in future releases? Cause updating stuff via CRUD api works, but when it comes to updating a large amount of data it becomes a bit hard to do. Thanks in advance
  • j

    jan

    12/29/2017, 3:06 PM
    Hi 👋 everyone! Does anyone have experience with using graphcool functions to adjust relation data before mutation? I'm trying to find a way to (on the server-side) determine the "earliest" node based on certain criteria and then link the newly created node to the one that I found. While I can easily find the node in question (and it's ID), despite returning the correct data from the function, the payload does not change
1...487488489...637Latest