{"repo":"ardatan/graphql-tools","free":true,"listed":false,"github":"https://github.com/ardatan/graphql-tools","clone":"git clone https://github.com/ardatan/graphql-tools.git","description":":wrench: Utility library for GraphQL to build, stitch and mock GraphQL schemas in the SDL-first approach","language":"TypeScript","stars":5432,"topics":["graphql-schema","schema-language","graphql","graphql-api","javascript","mock","typescript","schema-stitching","graphql-js"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"[![renovate-app badge][renovate-badge]][renovate-app] [renovate-badge]: https://img.shields.io/badge/renovate-app-blue.svg [renovate-app]: https://renovateapp.com/ This package provides a few useful ways to create a GraphQL schema: 1. Use the GraphQL schema language to generate a schema with full support for resolvers, interfaces, unions, and custom scalars. The schema produced is completely compatible with GraphQL.js. 2. Mock your GraphQL API with fine-grained per-type mocking 3. Automatically stitch multiple schemas together into one larger API Documentation Read the docs. Binding to HTTP If you want to bind your JavaScript GraphQL schema to an HTTP server, you can use GraphQL Yoga . You can develop your JavaScript based GraphQL API with graphql-tools and GraphQL Yoga together: One to write the schema and resolver code, and the other to connect it to a web server. Example When using graphql-tools , you describe the schema as a GraphQL type language string: Then you define resolvers as a nested object that maps type and field names to resolver functions: At the end, the schema and resolvers are combined using makeExecutableSchema : GraphQL-Tools schema can be consumed by frameworks like GraphQL Yoga, Apollo GraphQL or express-graphql For example in Node.js; You can check GraphQL Yoga for other JavaScript platforms and frameworks besides vanilla Node.js HTTP. This example has the entire type definition in one string and all resolvers in one file, but you can combine types and","default_branch":null,"files":null,"tree":[],"storefront":"/r/ardatan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ardatan/graphql-tools/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}