Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    mmmveggies
    @mmmveggies
    Happy Monday! Anyone have a chance to take a look at this? ^
    Branden Horiuchi
    @bhoriuchi
    working on an implementation of graphql-tools MakeExecutableSchema if anyone is interested https://github.com/bhoriuchi/graphql-go-tools
    Tejas H
    @CodingCreate101
    Hey people
    I am stuck on something.

    I would like to export Schema - I am reading this doc: https://docs.graphcms.com/developers/api/import-export#exporting

    But I don't understand how to use System Token. Please help!

    dharric
    @dharric
    has anyone had issues with data passed into context being missing in between resolver calls?
    mmmveggies
    @mmmveggies
    Hey is this library dead? :/
    Tom H Anderson
    @TomHAnderson
    The community page here never gets answers
    I think people come here because the page is just called 'graphql' and it sounds less library specifiic
    mmmveggies
    @mmmveggies
    Blah. At least PRs in https://github.com/vektah/gqlparser are getting responses
    lucas kardonski
    @lucaskardo

    Hello Community,

    Im having trouble sorting results from a graphql list query in Amplify. I have a table that has a field called X and i want to sort my results from the query in ascending order.

    Thanks

    Alena Budzko
    @AlenaBudzko
    Good morning all! If you just started to use GraphQL, me and my team has created the project that intends to aid engineers with converting their RESTful architecture to a single GraphQL endpoint. Check it out at: https://github.com/oslabs-beta/protographql and give it a star if you like it!:) Thank you!
    :]
    @elcolie
    Hi
    I am using Django with JSONField
    I have followed the official documents, but I couldn't be able to find the JSONField example. I would like to filter, search on it. Is that possible?
    Branden Horiuchi
    @bhoriuchi
    Need some more maintainers on this project
    Branden Horiuchi
    @bhoriuchi
    Submitted a PR for implementing subscribe execution. Feedback welcome graphql-go/graphql#495
    Christian Palazzo
    @g3k0
    Hello, I am doing a POC of a microservices app built in loopback 4...the need is to have some api protected by basic auth and other api protected by jwt..I am little bit confused about auth with express-gateway. Since the users and roles are models managed by one of the microservices...is it possible to implement custom authentications in the gateway that will use the rest api exposed by the microservice?
    sorry wrong room
    Denis Angulo
    @djangulo

    Hello all, I'd like to contribute an example involving the database/sql null types, should I:

    • a) append it to the already existing custom-scalar-type one

    or

    • b) create an entirely new example

    Thanks!

    bduncanj
    @bduncanj

    Can anyone point me to a reference implementation of nested / namespaced Mutations?

    mutation {
      Diagnostics {
        doSomeAction(input:3){
          success
          message
        }
      }
    }

    Presently have single level working just fine (i.e. no Diagnostics in the object above). I can define the schema just fine however run into problems with the sub-mutation actually being resolved.

    Branden Horiuchi
    @bhoriuchi
    Mutations can only have top level field resolvers they are not like queries where you can resolve sub fields. Mutations also run serially
    Ronan
    @rnnds_gitlab
    Hello, Im studying graphql and trying to use it in an existing (huge) project. Have you ever used graphql + clean architeture ? I dont have a lot of experience with graphql, but it seems to go through more than a layer (https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html)
    Carl A Lewis
    @Nemesisesq
    What is the problem you are having?
    Ronan
    @rnnds_gitlab
    @Nemesisesq I have lots of use cases (business logic layer), its hard for me to connect existing use cases to graphql, for example: if i was using soap/xml and choose to migrate to rest, i'd just update my presenters. its not the case with graphql, its not about just presentation. It doesnt seem to be a good idea to refactor all my application to fit graphql.
    bduncanj
    @bduncanj
    Thanks @bhoriuchi - I was able to register and post data to the resolver but could return the correct data, so you’ve explained this.
    Carl A Lewis
    @Nemesisesq
    Ronan, when converting an app to graphologists I build my schemes and then fulfill the contract using my resolvers.
    You shouldn’t need to do any refactoring
    areej
    @areejw
    Hi all, can someone please recommend automation testing tool for graphql (apart from soapui, apifortress, just-api, easygraphql-tester). Thanks
    Ali Tai
    @alictai_twitter
    Hi folks! My name is Alison Tai and I’m a program manager at Microsoft. We are looking at how we can improve Azure, and are interested in hearing from you about your API usage. If you are willing, we would greatly appreciate your input on this quick survey: https://aka.ms/AA6378e. Thank you for your time and consideration!
    zainatfair
    @zainatfair
    Hi folks, I am exploring a graphql and want to know if why is there "graph" in GraphQL?
    Does GraphQL uses Graph theory somehow? If yes, then how?
    Thanks in advance :)
    Tom H Anderson
    @TomHAnderson
    GraphQL can query deep, so more than just one entity and a list of columns, it can query related data, a graph of data.
    zainatfair
    @zainatfair
    Thanks @TomHAnderson , Relations are also involved in trees as well then why GraphQL only preaches about graphs?
    grvlthr
    @grvlthr
    some domains use grapnel query, how can i scan the list of domains who are using grapnel ?
    Edgars
    @edgars-sirokovs
    Hi! Is there a way to pick certain fields from a type when defining schema? E.g., I have type Product { .... } and type CMStockEntry { product: Product!, qty: Int! } and I want to specify that only name and id fields of Product will be returned by the API (@rest)
    Harry
    @harryzcy
    Hi. I wonder whether I can know which fields are being queried in the Resolve function?
    Ramcharan Madasu
    @react-ram
    const express = require("express");
    const { gql, ApolloServer } = require("apollo-server-express");
    
    const heroes = [
      { id: 1000, name: "bunny" },
      { id: 2000, name: "ram" }
    ];
    
    const typeDefs = gql`
      type Query {
        heroes: [Hero]
        getHero(id: Int): Hero
      }
      type Hero {
        id: Int
        name: String
      }
    `;
    
    const resolvers = {
      Query: {
        heroes: () => heroes,
        getHero: (_, args, context) => heroes.find(e => e === args.id)
      }
    };
    
    const server = new ApolloServer({ typeDefs, resolvers });
    const app = express();
    server.applyMiddleware({ app });
    
    app.listen({ port: 4000 }, () =>
      console.log("http://localhost:4000" + server.graphqlPath)
    );
    i have problem in writing the resolver please help me
    getHero: (_, args, context) => heroes.find(e => e === args.id)
    and my query is
    {
      getHero(id:1000){
        id
        name
      }
    }
    Ramcharan Madasu
    @react-ram
    got the answer thankyou
    Constantin Angheloiu
    @cmnstmntmn
    hey i have a composed query
    export const USER = gql`
      query User {
        User {
          ID
          FirstName
          LastName
          Email
          hasLocations @client
        }
        Locations {
          ID
          Name
          City
          Address
          State
          CreatedAt
        }
      }
    `;
    and a resolver
    export const resolvers = {
      User: {
        hasLocations(obj, args, context, info) {
            // -- count the locations and set to false / true
          return true;
        }
      }
    };
    any ideea how i could acces the Location query inside my hasLocation field?
    Prithivraj200
    @Prithivraj200
    Hi, can someone help me on subscription using express-graphql