graphql-mesh

The Graph of Everything - Federated architecture for any API service

MIT License

Downloads
7.5M
Stars
3.2K
Committers
137

Bot releases are visible (Hide)

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • a0950ac6f: Breaking Change:

    • Now you can set a global customFetch instead of setting customFetch individually for each handler. customFetch configuration field for each handler will no longer work. And also customFetch needs to be the path of the code file that exports the function as default. moduleName#exportName is not supported for now.

    • While programmatically creating the handlers, now you also need fetchFn to be passed to the constructor;

    new GraphQLHandler({
      ...,
      fetchFn: myFetchFn,
    })
    
    • readFileOrUrl's second config parameter is now required. Also this second parameter should take an object with cwd, importFn, fetch and logger. You can see the diff of handler's codes as an example.

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • a0950ac6f: Breaking Change:

    • Now you can set a global customFetch instead of setting customFetch individually for each handler. customFetch configuration field for each handler will no longer work. And also customFetch needs to be the path of the code file that exports the function as default. moduleName#exportName is not supported for now.

    • While programmatically creating the handlers, now you also need fetchFn to be passed to the constructor;

    new GraphQLHandler({
      ...,
      fetchFn: myFetchFn,
    })
    
    • readFileOrUrl's second config parameter is now required. Also this second parameter should take an object with cwd, importFn, fetch and logger. You can see the diff of handler's codes as an example.

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • a0950ac6f: Breaking Change:

    • Now you can set a global customFetch instead of setting customFetch individually for each handler. customFetch configuration field for each handler will no longer work. And also customFetch needs to be the path of the code file that exports the function as default. moduleName#exportName is not supported for now.

    • While programmatically creating the handlers, now you also need fetchFn to be passed to the constructor;

    new GraphQLHandler({
      ...,
      fetchFn: myFetchFn,
    })
    
    • readFileOrUrl's second config parameter is now required. Also this second parameter should take an object with cwd, importFn, fetch and logger. You can see the diff of handler's codes as an example.

Patch Changes

graphql-mesh - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • a0950ac6f: Breaking Change:

    • Now you can set a global customFetch instead of setting customFetch individually for each handler. customFetch configuration field for each handler will no longer work. And also customFetch needs to be the path of the code file that exports the function as default. moduleName#exportName is not supported for now.

    • While programmatically creating the handlers, now you also need fetchFn to be passed to the constructor;

    new GraphQLHandler({
      ...,
      fetchFn: myFetchFn,
    })
    
    • readFileOrUrl's second config parameter is now required. Also this second parameter should take an object with cwd, importFn, fetch and logger. You can see the diff of handler's codes as an example.

Patch Changes

  • Updated dependencies [19d06f6c9]
  • Updated dependencies [19d06f6c9]
  • Updated dependencies [a0950ac6f]
graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • a0950ac6f: Breaking Change:

    • Now you can set a global customFetch instead of setting customFetch individually for each handler. customFetch configuration field for each handler will no longer work. And also customFetch needs to be the path of the code file that exports the function as default. moduleName#exportName is not supported for now.

    • While programmatically creating the handlers, now you also need fetchFn to be passed to the constructor;

    new GraphQLHandler({
      ...,
      fetchFn: myFetchFn,
    })
    
    • readFileOrUrl's second config parameter is now required. Also this second parameter should take an object with cwd, importFn, fetch and logger. You can see the diff of handler's codes as an example.

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • ee592adbf: Directives Approach for Additional Type Definitions and Resolvers;

    Before we use declarative approach for additionalResolvers that is added besides additionalTypeDefs which might be confusing once the project grows.
    And now we introduce new @resolveTo directive which has the same declarative syntax inside the SDL instead of the configuration file.

    Before;

    additionalTypeDefs: |
      extend type Book {
        author: Author
      }
    
    additionalResolvers:
      - targetTypeName: Book
        targetFieldName: author
        sourceName: Author
        sourceTypeName: Query
        sourceFieldName: authorById
        requiredSelectionSet: '{ id }'
        sourceArgs:
          id: '{root.id}'
    

    After:

    extend type Book {
      author: Author @resolveTo(
        sourceName: "Author",
        sourceTypeName: "Query",
        sourceFieldName: "author",
        requiredSelectionSet: "{ id }",
        sourceArgs:
          id: "{root.id}"
      )
    }
    
  • a0950ac6f: Breaking Change:

    • Now you can set a global customFetch instead of setting customFetch individually for each handler. customFetch configuration field for each handler will no longer work. And also customFetch needs to be the path of the code file that exports the function as default. moduleName#exportName is not supported for now.

    • While programmatically creating the handlers, now you also need fetchFn to be passed to the constructor;

    new GraphQLHandler({
      ...,
      fetchFn: myFetchFn,
    })
    
    • readFileOrUrl's second config parameter is now required. Also this second parameter should take an object with cwd, importFn, fetch and logger. You can see the diff of handler's codes as an example.

Patch Changes

graphql-mesh - @omnigraph/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 19d06f6c9: Replace micromatch with minimatch and remove file-path-to-url because both has Node specific dependencies which need polyfills and extra setup for non Node environments
  • Updated dependencies [19d06f6c9]
  • Updated dependencies [19d06f6c9]
  • Updated dependencies [a0950ac6f]
graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

graphql-mesh - @graphql-mesh/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

Package Rankings
Top 1.2% on Npmjs.org
Badges
Extracted from project README
GraphQLConf 2024 Banner: September 10-12, San Francisco. Hosted by the GraphQL Foundation npm version Discord Chat code style: prettier GitHub license
Related Projects