Skip to content

Commit

Permalink
fix: Update examples to use new generated input type names
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-martin committed May 11, 2021
1 parent fb2ed7a commit f987dcd
Show file tree
Hide file tree
Showing 38 changed files with 90 additions and 36 deletions.
4 changes: 3 additions & 1 deletion examples/auth/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,9 @@ describe('SubTaskResolver (auth - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/auth/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ describe('TagResolver (auth - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/auth/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,9 @@ describe('TodoItemResolver (auth - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/basic/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,9 @@ describe('SubTaskResolver (basic - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/basic/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ describe('TagResolver (basic - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/basic/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,9 @@ describe('TodoItemResolver (basic - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/complexity/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,9 @@ describe('SubTaskResolver (complexity - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/complexity/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ describe('TagResolver (complexity - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/complexity/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,9 @@ describe('TodoItemResolver (complexity - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/custom-service/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ describe('TodoItemResolver (custom-service - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,9 @@ describe('Federated - SubTaskResolver (e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/federation/tag-graphql/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ describe('Federated - TagResolver (e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,9 @@ describe('Federated - TodoItemResolver (e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/federation/user-graphql/e2e/user.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ describe('Federated - UserResolver (e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneUserInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/hooks/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,9 @@ describe('SubTaskResolver (hooks - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/hooks/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ describe('TagResolver (hooks - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/hooks/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,9 @@ describe('TodoItemResolver (hooks - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
3 changes: 3 additions & 0 deletions examples/init-scripts/mysql/init-custom-id.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CREATE USER custom_id;
CREATE DATABASE custom_id;
GRANT ALL PRIVILEGES ON custom_id.* TO custom_id;
3 changes: 3 additions & 0 deletions examples/init-scripts/postgres/init-custom-id.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CREATE USER custom_id WITH SUPERUSER;
CREATE DATABASE custom_id;
GRANT ALL PRIVILEGES ON DATABASE custom_id TO custom_id;
4 changes: 3 additions & 1 deletion examples/mongoose/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ describe('SubTaskResolver (mongoose - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/mongoose/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ describe('TagResolver (mongoose - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/mongoose/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,9 @@ describe('TodoItemResolver (mongoose - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/no-paging/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,9 @@ describe('SubTaskResolver (noPaging - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/no-paging/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ describe('TagResolver (noPaging - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/no-paging/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,9 @@ describe('TodoItemResolver (noPaging - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/offset-paging/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,9 @@ describe('SubTaskResolver (limitOffset - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/offset-paging/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ describe('TagResolver (limitOffset - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/offset-paging/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,9 @@ describe('TodoItemResolver (limitOffset - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/sequelize/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,9 @@ describe('SubTaskResolver (sequelize - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/sequelize/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ describe('TagResolver (sequelize - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/sequelize/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,9 @@ describe('TodoItemResolver (sequelize - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/typegoose/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ describe('SubTaskResolver (typegoose - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/typegoose/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ describe('TagResolver (typegoose - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/typegoose/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,9 @@ describe('TodoItemResolver (typegoose - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/typeorm-soft-delete/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,9 @@ describe('SoftDelete - TodoItemResolver (e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/typeorm/e2e/sub-task.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,9 @@ describe('SubTaskResolver (typeorm - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneSubTaskInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down
2 changes: 1 addition & 1 deletion examples/typeorm/e2e/tag.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ describe('TagResolver (typeorm - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe('Field "DeleteOneTagInput.id" of required type "ID!" was not provided.');
}));
});

Expand Down
4 changes: 3 additions & 1 deletion examples/typeorm/e2e/todo-item.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,9 @@ describe('TodoItemResolver (typeorm - e2e)', () => {
.expect(400)
.then(({ body }) => {
expect(body.errors).toHaveLength(1);
expect(body.errors[0].message).toBe('Field "DeleteOneInput.id" of required type "ID!" was not provided.');
expect(body.errors[0].message).toBe(
'Field "DeleteOneTodoItemInput.id" of required type "ID!" was not provided.',
);
}));
});

Expand Down

0 comments on commit f987dcd

Please sign in to comment.