-
Notifications
You must be signed in to change notification settings - Fork 23
Add Support for Interface types in SDL-Transformation and generade ad… #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,4 +89,6 @@ typings/ | |
| # DynamoDB Local files | ||
| .dynamodb/ | ||
|
|
||
| dist/ | ||
| # Intellij IDEA Configuration | ||
| .idea | ||
| *.iml | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import { NameNode, StringValueNode, DirectiveNode, ValueNode } from 'graphql/language'; | ||
| export declare function createNameNode(value: string): NameNode; | ||
| export declare function createStringValueNode(value: string, block?: boolean): StringValueNode; | ||
| export declare function createDirectiveNode(name: string, directiveArguments?: { | ||
| [argumentName: string]: ValueNode; | ||
| }): DirectiveNode; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import { GraphQLSchema } from 'graphql'; | ||
| import { GraphQLReferenceResolver } from '@apollo/federation/dist/types'; | ||
| export interface FederationFieldConfig { | ||
| external?: boolean; | ||
| provides?: string; | ||
| requires?: string; | ||
| } | ||
| export interface FederationFieldsConfig { | ||
| [fieldName: string]: FederationFieldConfig; | ||
| } | ||
| export interface FederationObjectConfig<TContext> { | ||
| keyFields?: string[]; | ||
| extend?: boolean; | ||
| resolveReference?: GraphQLReferenceResolver<TContext>; | ||
| fields?: FederationFieldsConfig; | ||
| } | ||
| export interface FederationConfig<TContext> { | ||
| [objectName: string]: FederationObjectConfig<TContext>; | ||
| } | ||
| export declare function transformSchemaFederation<TContext>(schema: GraphQLSchema, federationConfig: FederationConfig<TContext>): GraphQLSchema; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import { FederationConfig } from './transform-federation'; | ||
| export declare function addFederationAnnotations<TContext>(schema: string, federationConfig: FederationConfig<TContext>): string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mwildt Is it required to remove git ignore for folder dist? You also added a lot of new files in oder dist/* which shouldn't belong to this pull request.