Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enterprise Grade Tooling For Your GraphQL Server

License

NotificationsYou must be signed in to change notification settings

graphql-hive/graphql-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQLConf 2024 Banner: September 10-12, San Francisco. Hosted by the GraphQL Foundation

npm versionCIDiscord ChatGitHub license

GraphQL Modules is a toolset of libraries and guidelines dedicated tocreate reusable, maintainable, testable and extendable modules out of your GraphQL server.

Highlights

  • Reusable modules - Modules are defined by their GraphQL schema (Schema first design). They can be shared between apps.
  • Scalable structure - Manage multiple teams and features, multiple micro-services and servers.
  • Gradual growth - A clear, gradual path from a very simple and fast, single-file modules, to scalable multi-file, multi-teams, multi-repo, multi-server modules.
  • Testable - A rich toolset around testing, mocking and separation.

Documentation

Documentation is available atgraphql-modules.com.

Installation

To install graphql-modules, use the following:

$ npm install graphql-modules# Or, with Yarn$ yarn add graphql-modules

Pre-release

We are also publishing a pre-release version to NPM on each change.

Just take a look at the build status on Github Actions and find "Publish Canary" job to get the published version.

Usage

More advanced usage atgraphql-modules.com

import{createModule,createApplication,gql}from'graphql-modules'constmodule=createModule({id:'my-module',typeDefs:gql`    type Post {      id: ID      title: String      author: User    }    type Query {      posts: [Post]    }  `,resolvers:blogResolvers})constapplication=createApplication({modules:[module]})

Inside theexamples directory you can find the following examples:

Contributions

Contributions, issues and feature requests are very welcome. If you are using this package and fixed a bug for yourself, please consider submitting a PR!

And if this is your first time contributing to this project, please do read ourContributor Workflow Guide before you get started off.

Code of Conduct

Help us keep GraphQL Modules open and inclusive. Please read and follow ourCode of Conduct as adopted fromContributor Covenant

License

GitHub license

MIT


[8]ページ先頭

©2009-2025 Movatter.jp