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

    jhony0311

    11/30/2017, 4:13 PM
    I think that make sense for the teams that already have experience with AWS services
  • a

    agartha

    11/30/2017, 4:15 PM
    @joshua Manual query and mutations, no request pipeline, manual database creation, etc.
  • l

    lawjolla

    11/30/2017, 4:15 PM
    I agree with @jhony0311. I've you're already part of the AWS borg and understand their other services (Cognito / IAM), it makes sense. I like the modularity of GraphCool where I can let them run it, let them cluster it, or go running to Digital Ocean or bare metal.
  • a

    agartha

    11/30/2017, 4:16 PM
    Simply compare your
    types.graphql
    with the full schema you can download, and see what you have to do manually with AWS AppSync
  • l

    lawjolla

    11/30/2017, 4:16 PM
    @agartha I just want through the AppSync tutorial. Most of the database creation is automated if desired. It looks like you can insert Lambda to make a pipeline.
  • j

    joshua

    11/30/2017, 4:17 PM
    @agartha Yes, it looks like everything else AWS, very feature rich, but with a high learning curve. However, they do mention auto database setup based on your GraphQL schema as an option: https://docs.aws.amazon.com/appsync/latest/devguide/provision-from-schema.html#aws-appsync-provision-from-schema
    a
    • 2
    • 2
  • a

    agartha

    11/30/2017, 4:17 PM
    Even if database creation can be partly automated, it's still based on a full schema definition. Queries and mutations will not be generated automatically
  • j

    joshua

    11/30/2017, 4:18 PM
    Yes, there’s not nearly as much generation behind the scenes.
  • l

    lawjolla

    11/30/2017, 4:18 PM
    I'm more interested in their AppSync client and how they're caching offline mutations and rewalking the query tree when the client comes back online
  • j

    joshua

    11/30/2017, 4:19 PM
    @agartha what do you mean by request pipeline?
  • a

    agartha

    11/30/2017, 4:19 PM
    Before and after hooks
  • j

    joshua

    11/30/2017, 4:19 PM
    Got it
  • a

    agartha

    11/30/2017, 4:20 PM
    What I hate the most is that they forked the Apollo codegen repo, and call it aws-appsync-codegen.
    💯 2
    j
    l
    • 3
    • 44
  • a

    agartha

    11/30/2017, 4:20 PM
    https://github.com/awslabs/aws-appsync-codegen/issues/1
  • m

    Martin Peck

    11/30/2017, 4:36 PM
    Is there any guidance/docs/anything on setting graph.cool up on Azure?
    n
    • 2
    • 4
  • b

    Butch

    11/30/2017, 5:36 PM
    Is there a way to clear or reset a local graphcool db data?
    a
    • 2
    • 4
  • e

    Emi

    11/30/2017, 5:41 PM
    What's the best way to access to the local db?
    n
    • 2
    • 2
  • m

    michaelchiche

    11/30/2017, 5:50 PM
    does any one else have a problem when running locally
    graphcool deploy --dry-run
    , it always tells me my functions are wrong but
    graphcool deploy
    works fine, and the functions work correctly?
    n
    • 2
    • 1
  • h

    huv1k

    11/30/2017, 5:50 PM
    is there any bigger project on github what is using apollo-client? 🙂
    i
    • 2
    • 18
  • o

    orr

    11/30/2017, 5:54 PM
    Hey guys, I want to create a resolver that returns information about the logged in user. An endpoint similar to the
    /me
    endpoint as seen in many APIs. As per Graphcool's online examples, issuing a query from a resolver to the CRUD Api for the logged in user would look something like this:
    Copy code
    const query = `
        query me($id: ID!) {
          viewer {
            User(id: $id) {
              < fields from the client go here >
            }
          }
        }
      `;
      const variables = {
        id: event.context.auth.nodeId,
      };
      const api = fromEvent(event).api('relay/v1');
      const response = await api.request(
        query,
        variables,
      );
    My question is: Is there a more idiomatic way to do this in Graphcool? And would it make sense for the client to pass up a variable (potentially named
    fragment
    ) that will be used inside the query to fetch the fields the client is interested in?
    e
    p
    n
    • 4
    • 7
  • d

    doug_w

    11/30/2017, 5:55 PM
    Does anyone know what version of know the console uses for Hooks and Function?
  • d

    doug_w

    11/30/2017, 6:05 PM
    It is
    v4.8.6
    n
    • 2
    • 1
  • p

    philip

    11/30/2017, 8:47 PM
    Im looking for a best practice server example to follow for my react app im building. It needs authentication(social, email/password), crud actions, and i need to set up elasticsearch for a complex search and filter page. Anyone know of one?
    a
    n
    • 3
    • 7
  • o

    oprearocks

    11/30/2017, 9:49 PM
    Hey everyone! There's something weird going on wiht the website. https://cl.ly/o441
  • o

    oprearocks

    11/30/2017, 9:49 PM
    Not sure if it's only me or there's an actual problem with it. Just wanted to let you know.
    n
    • 2
    • 1
  • g

    Graham Ballantyne

    12/01/2017, 12:53 AM
    Is it possible to have a hook function (e.g.
    operationBefore
    ) fire in response to a change in a relationship? For example, I have
    Department
    and
    Employee
    types, and a relationship between the two to define managers. I want a hook to fire in response to the
    addToDepartmentManagers
    mutation. I've tried hooking into both
    Department.update
    and
    Employee.update
    operations but neither get triggered.
  • g

    Graham Ballantyne

    12/01/2017, 12:59 AM
    I've also tried the generated
    AddToDepartmentManagersPayload
    , but that causes
    deploy
    to throw an error.
    n
    • 2
    • 2
  • l

    Lam Kieu

    12/01/2017, 1:38 AM
    Did_anyone_try_something_like_this_.sql
  • t

    Trung Tròn Trịa

    12/01/2017, 1:55 AM
    Hi everyone, may I ask if it's possible to deploy an instance of graphcool using external MySQL instance with current graphcool-cli?
    n
    • 2
    • 1
  • r

    rizaSatyabudhi

    12/01/2017, 3:21 AM
    a
1...452453454...637Latest