aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msw/schema/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/msw/schema/index.ts')
-rw-r--r--tests/msw/schema/index.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/msw/schema/index.ts b/tests/msw/schema/index.ts
index 3763616..c818d50 100644
--- a/tests/msw/schema/index.ts
+++ b/tests/msw/schema/index.ts
@@ -36,3 +36,20 @@ export const schema = addResolversToSchema({
schema: schemaFromTypes,
resolvers,
});
+
+export const githubSchema = buildSchema(`
+scalar DateTime
+
+type Repository {
+ createdAt: DateTime!
+ stargazerCount: Int!
+ updatedAt: DateTime!
+}
+
+type Query {
+ repository(
+ followRenames: Boolean = true
+ name: String!
+ owner: String!
+ ): Repository
+}`);