by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    :]
    @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
    lynn303
    @lynn303
    How to group go graphql
    Seyidna Ali
    @seyidnaali
    hello
    I need a help plz
    Seyidna Ali
    @seyidnaali
    how can Embleed Graphql Document ?
    Ahmed Rebai
    @Rebaiahmed
    @seyidnaali I think it's related to your database schemas
    what do you mean excactlu
    MAROC TROC
    @troc_maroc_twitter
    Hi
    Is there a way to get the query name before it's executed
    i'm trying to make a middleware that only lets certain queries go through if not authorized
    example :
    if currentquery=="login" { //execute the query }
    if currentquery=="something else" {
    //check the authorization header
    then
    //execute the query
    }
    i'm currently doing this in the resolver of each query which is not practical
    Henry Sequeda González
    @stdevHsequeda
    Hi, I am using graphql-go. Anyone know any way to set an Enum to Default value in a query arguments??
    dadochudy
    @dadochudy
    hi is there way to do this in graphql scheme
    type test{
    [prop: String!]: JSONObject;
    }
    Seyidna Ali
    @seyidnaali
    hello
    MAROC TROC
    @troc_maroc_twitter
    @seyidnaali hhhhh ali
    Jordan Max
    @jordantomax
    I'm having some issues with base64 encoding using the relay library. I created a SO post here: https://stackoverflow.com/questions/61684910/graphql-go-relay-the-base64-hash-of-my-node-id-is-not-what-i-expect. If anybody can help, would really appreciate it!
    Jordan Max
    @jordantomax
    Never mind, figured it out!
    Robert
    @robert197
    we used graphql with wagtail cms django based: https://medium.com/@devs_group/why-our-websites-stay-ahead-c608e3f4bea4
    here is the repo