@pothos/core
Advanced tools
Comparing version 3.0.0 to 3.0.1
# Change Log | ||
## 3.0.1 | ||
### Patch Changes | ||
- a01abb7f: Fix compatability between prisma and auth plugins | ||
## 3.0.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@pothos/core", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript", | ||
@@ -51,3 +51,3 @@ "main": "./lib/index.js", | ||
}, | ||
"readme": "## Pothos - A plugin based GraphQL schema builder for typescript\n\nPothos makes writing graphql schemas in typescript easy, fast and enjoyable. The core of Pothos adds\n0 overhead at runtime, and has `graphql` as its only dependency.\n\nBy leaning heavily on typescripts ability to infer types, Pothos is the most type-safe way of\nwriting GraphQL schemas in typescript/node while requiring very few manual type definitions and no\ncode generation.\n\nPothos has a unique and powerful plugin system that makes every plugin feel like its features are\nbuilt into the core library. Plugins can extend almost any part of the API by adding new options or\nmethods that can take full advantage of the Pothos type system.\n\n## Hello, World\n\n```typescript\nimport { ApolloServer } from 'apollo-server';\nimport SchemaBuilder from '@pothos/core';\n\nconst builder = new SchemaBuilder({});\n\nbuilder.queryType({\n fields: (t) => ({\n hello: t.string({\n args: {\n name: t.arg.string(),\n },\n resolve: (parent, { name }) => `hello, ${name || 'World'}`,\n }),\n }),\n});\n\nnew ApolloServer({\n schema: builder.toSchema({}),\n}).listen(3000);\n```\n\n## Full docs available at https://pothos-graphql.dev\n\n## Plugins that make Pothos even better\n\n- [**Auth**](./plugins/scope-auth)\n\n Add global, type level, or field level authorization checks to your schema\n\n- [**Complexity**](./docs/plugins/complexity)\n\n A plugin for defining and limiting complexity of queries\n\n- [**Directives**](./plugins/directives)\n\n Integrate with existing schema graphql directives in a type-safe way.\n\n- [**Errors**](./plugins/errors)\n\n A plugin for easily including error types in your GraphQL schema and hooking up error types to\n resolvers.\n\n- [**Dataloader**](./plugins/dataloader)\n\n Quickly define data-loaders for your types and fields to avoid n+1 queries.\n\n- [**Mocks**](./plugins/mocks)\n\n Add mock resolver for easier testing\n\n- [**Prisma**](./plugins/prisma)\n\n A plugin for more efficient integration with prisma that can help solve n+1 issues and more\n efficienty resolve queries\n\n- [**Relay**](./plugins/relay)\n\n Easy to use builder methods for defining relay style nodes and connections, and helpful utilities\n\n for cursor based pagination.\n\n- [**Simple Objects**](./plugins/simple-objects)\n\n Define simple object types without resolvers or manual type definitions.\n\n- [**Smart Subscriptions**](./plugins/smart-subscriptions)\n\n Make any part of your graph subscribable to get live updates as your data changes.\n\n- [**Sub-Graph**](./plugins/sub-graph)\n\n Build multiple subsets of your graph to easily share code between internal and external APIs.\n\n- [**Validation**](./plugins/validation)\n\n Validating your inputs and arguments\n" | ||
"readme": "![Pothos](https://www.pothos-graphql.dev/assets/logo-name-auto.svg)\n\n# Pothos GraphQL ([formerly GiraphQL](https://www.pothos-graphql.dev/docs/migrations/giraphql-pothos)) -\n\nPothos is a plugin based GraphQL schema builder for typescript.\n\nIt makes writing graphql schemas in typescript easy, fast and enjoyable. The core of Pothos adds 0\noverhead at runtime, and has `graphql` as its only dependency.\n\nBy leaning heavily on typescripts ability to infer types, Pothos is the most type-safe way of\nwriting GraphQL schemas in typescript/node while requiring very few manual type definitions and no\ncode generation.\n\nPothos has a unique and powerful plugin system that makes every plugin feel like its features are\nbuilt into the core library. Plugins can extend almost any part of the API by adding new options or\nmethods that can take full advantage of the Pothos type system.\n\n## Hello, World\n\n```javascript\nimport { ApolloServer } from 'apollo-server';\nimport SchemaBuilder from '@pothos/core';\n\nconst builder = new SchemaBuilder({});\n\nbuilder.queryType({\n fields: (t) => ({\n hello: t.string({\n args: {\n name: t.arg.string(),\n },\n resolve: (parent, { name }) => `hello, ${name || 'World'}`,\n }),\n }),\n});\n\nnew ApolloServer({\n schema: builder.toSchema({}),\n}).listen(3000);\n```\n\n## Plugins that make Pothos even better\n\n- [**Auth**](https://www.pothos-graphql.dev/docs/plugins/scope-auth)\n\n Add global, type level, or field level authorization checks to your schema\n\n- [**Complexity**](https://www.pothos-graphql.dev/docs/plugins/complexity)\n\n A plugin for defining and limiting complexity of queries\n\n- [**Directives**](https://www.pothos-graphql.dev/docs/plugins/directives)\n\n Integrate with existing schema graphql directives in a type-safe way.\n\n- [**Errors**](https://www.pothos-graphql.dev/docs/plugins/errors)\n\n A plugin for easily including error types in your GraphQL schema and hooking up error types to\n resolvers.\n\n- [**Dataloader**](https://www.pothos-graphql.dev/docs/plugins/dataloader)\n\n Quickly define data-loaders for your types and fields to avoid n+1 queries.\n\n- [**Mocks**](https://www.pothos-graphql.dev/docs/plugins/mocks)\n\n Add mock resolver for easier testing\n\n- [**Prisma**](https://www.pothos-graphql.dev/docs/plugins/prisma)\n\n A plugin for more efficient integration with prisma that can help solve n+1 issues and more\n efficienty resolve queries\n\n- [**Relay**](https://www.pothos-graphql.dev/docs/plugins/relay)\n\n Easy to use builder methods for defining relay style nodes and connections, and helpful utilities\n\n for cursor based pagination.\n\n- [**Simple Objects**](https://www.pothos-graphql.dev/docs/plugins/simple-objects)\n\n Define simple object types without resolvers or manual type definitions.\n\n- [**Smart Subscriptions**](https://www.pothos-graphql.dev/docs/plugins/smart-subscriptions)\n\n Make any part of your graph subscribable to get live updates as your data changes.\n\n- [**Sub-Graph**](https://www.pothos-graphql.dev/docs/plugins/sub-graph)\n\n Build multiple subsets of your graph to easily share code between internal and external APIs.\n\n- [**Validation**](https://www.pothos-graphql.dev/docs/plugins/validation)\n\n Validating your inputs and arguments\n" | ||
} |
@@ -1,6 +0,10 @@ | ||
## Pothos - A plugin based GraphQL schema builder for typescript | ||
![Pothos](https://www.pothos-graphql.dev/assets/logo-name-auto.svg) | ||
Pothos makes writing graphql schemas in typescript easy, fast and enjoyable. The core of Pothos adds | ||
0 overhead at runtime, and has `graphql` as its only dependency. | ||
# Pothos GraphQL ([formerly GiraphQL](https://www.pothos-graphql.dev/docs/migrations/giraphql-pothos)) - | ||
Pothos is a plugin based GraphQL schema builder for typescript. | ||
It makes writing graphql schemas in typescript easy, fast and enjoyable. The core of Pothos adds 0 | ||
overhead at runtime, and has `graphql` as its only dependency. | ||
By leaning heavily on typescripts ability to infer types, Pothos is the most type-safe way of | ||
@@ -16,3 +20,3 @@ writing GraphQL schemas in typescript/node while requiring very few manual type definitions and no | ||
```typescript | ||
```javascript | ||
import { ApolloServer } from 'apollo-server'; | ||
@@ -39,19 +43,17 @@ import SchemaBuilder from '@pothos/core'; | ||
## Full docs available at https://pothos-graphql.dev | ||
## Plugins that make Pothos even better | ||
- [**Auth**](./plugins/scope-auth) | ||
- [**Auth**](https://www.pothos-graphql.dev/docs/plugins/scope-auth) | ||
Add global, type level, or field level authorization checks to your schema | ||
- [**Complexity**](./docs/plugins/complexity) | ||
- [**Complexity**](https://www.pothos-graphql.dev/docs/plugins/complexity) | ||
A plugin for defining and limiting complexity of queries | ||
- [**Directives**](./plugins/directives) | ||
- [**Directives**](https://www.pothos-graphql.dev/docs/plugins/directives) | ||
Integrate with existing schema graphql directives in a type-safe way. | ||
- [**Errors**](./plugins/errors) | ||
- [**Errors**](https://www.pothos-graphql.dev/docs/plugins/errors) | ||
@@ -61,11 +63,11 @@ A plugin for easily including error types in your GraphQL schema and hooking up error types to | ||
- [**Dataloader**](./plugins/dataloader) | ||
- [**Dataloader**](https://www.pothos-graphql.dev/docs/plugins/dataloader) | ||
Quickly define data-loaders for your types and fields to avoid n+1 queries. | ||
- [**Mocks**](./plugins/mocks) | ||
- [**Mocks**](https://www.pothos-graphql.dev/docs/plugins/mocks) | ||
Add mock resolver for easier testing | ||
- [**Prisma**](./plugins/prisma) | ||
- [**Prisma**](https://www.pothos-graphql.dev/docs/plugins/prisma) | ||
@@ -75,3 +77,3 @@ A plugin for more efficient integration with prisma that can help solve n+1 issues and more | ||
- [**Relay**](./plugins/relay) | ||
- [**Relay**](https://www.pothos-graphql.dev/docs/plugins/relay) | ||
@@ -82,16 +84,16 @@ Easy to use builder methods for defining relay style nodes and connections, and helpful utilities | ||
- [**Simple Objects**](./plugins/simple-objects) | ||
- [**Simple Objects**](https://www.pothos-graphql.dev/docs/plugins/simple-objects) | ||
Define simple object types without resolvers or manual type definitions. | ||
- [**Smart Subscriptions**](./plugins/smart-subscriptions) | ||
- [**Smart Subscriptions**](https://www.pothos-graphql.dev/docs/plugins/smart-subscriptions) | ||
Make any part of your graph subscribable to get live updates as your data changes. | ||
- [**Sub-Graph**](./plugins/sub-graph) | ||
- [**Sub-Graph**](https://www.pothos-graphql.dev/docs/plugins/sub-graph) | ||
Build multiple subsets of your graph to easily share code between internal and external APIs. | ||
- [**Validation**](./plugins/validation) | ||
- [**Validation**](https://www.pothos-graphql.dev/docs/plugins/validation) | ||
Validating your inputs and arguments |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
949266
425
95