-
-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #415 from MichalLytek/omit-not-used-types
Omit types not used by loaded resolvers
- Loading branch information
Showing
13 changed files
with
239 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# ----------------------------------------------- | ||
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!! | ||
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!! | ||
# ----------------------------------------------- | ||
|
||
""" | ||
The javascript `Date` as string. Type represents date and time as the ISO Date string. | ||
""" | ||
scalar DateTime | ||
|
||
type Employee implements IPerson { | ||
id: ID! | ||
name: String! | ||
age: Int! | ||
companyName: String! | ||
} | ||
|
||
input EmployeeInput { | ||
name: String! | ||
dateOfBirth: DateTime! | ||
companyName: String! | ||
} | ||
|
||
interface IPerson { | ||
id: ID! | ||
name: String! | ||
age: Int! | ||
} | ||
|
||
type Mutation { | ||
addStudent(input: StudentInput!): Student! | ||
addEmployee(input: EmployeeInput!): Employee! | ||
} | ||
|
||
type Person implements IPerson { | ||
id: ID! | ||
name: String! | ||
age: Int! | ||
} | ||
|
||
type Query { | ||
persons: [IPerson!]! | ||
} | ||
|
||
type Student implements IPerson { | ||
id: ID! | ||
name: String! | ||
age: Int! | ||
universityName: String! | ||
} | ||
|
||
input StudentInput { | ||
name: String! | ||
dateOfBirth: DateTime! | ||
universityName: String! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.