Giter Club home page Giter Club logo

graphql-extended's People

Contributors

mikeparisstuff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

graphql-extended's Issues

incorrect complexity calculation?

In the example, we have a cost of 0 for scalars and 1 for field. Docs says the complexity for below query is 6. Should it not be 2 in this case if scalars are 0 and field is 1 complex?

import { execute } from 'graphql-extended'
execute({
  schema: built,
  document: parse(`
    query GetUserAndPosts {
      user {
        id
        username
      }

      posts(limit: 20) {
        name
        age
      }
    }
  `),
  queryReducers: [ new ComplexityReducer() ],
})

TS2304: Cannot find name 'mixed'.

Trying to use this npm dep in my typescript graphql project, and I get the following errors

ERROR in [at-loader] ./node_modules/graphql-extended/build/execution/ExecutionContext.d.ts:14:19
    TS2304: Cannot find name 'mixed'.

ERROR in [at-loader] ./node_modules/graphql-extended/build/execution/ExecutionContext.d.ts:17:24
    TS2304: Cannot find name 'mixed'.

ERROR in [at-loader] ./node_modules/graphql-extended/build/execution/GraphQLExtResolveInfo.d.ts:3:25
    TS2304: Cannot find name 'mixed'.

ERROR in [at-loader] ./node_modules/graphql-extended/build/execution/GraphQLExtResolveInfo.d.ts:3:32
    TS2304: Cannot find name 'mixed'.

ERROR in [at-loader] ./node_modules/graphql-extended/build/execution/execute.d.ts:27:24
    TS2304: Cannot find name 'mixed'.

ERROR in [at-loader] ./node_modules/graphql-extended/build/execution/execute.d.ts:34:17
    TS2304: Cannot find name 'mixed'.

any idea?

I am compiling with the latest tsc

tks

How to use with Express

Sorry to ask but I can't figure how to use this package along side express-graphql or even only express.

I thought it was a superset of graphql-js, so I tweaked express-graphql, replacing the graphql imports with graphql-extended.

Nice try, but all tests are failing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.