Skip to content

Commit 8fea2d5

Browse files
committed
Reduce diff size
1 parent e2ddc40 commit 8fea2d5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/introspection/getSchemaFromData.spec.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ const data = {
3636
],
3737
};
3838

39-
const UserType = new GraphQLObjectType({
40-
name: 'User',
41-
fields: () => ({
42-
id: { type: new GraphQLNonNull(GraphQLID) },
43-
name: { type: new GraphQLNonNull(GraphQLString) },
44-
Posts: { type: new GraphQLList(PostType) },
45-
}),
46-
});
47-
4839
const PostType = new GraphQLObjectType({
4940
name: 'Post',
5041
fields: () => ({
@@ -56,6 +47,15 @@ const PostType = new GraphQLObjectType({
5647
}),
5748
});
5849

50+
const UserType = new GraphQLObjectType({
51+
name: 'User',
52+
fields: () => ({
53+
id: { type: new GraphQLNonNull(GraphQLID) },
54+
name: { type: new GraphQLNonNull(GraphQLString) },
55+
Posts: { type: new GraphQLList(PostType) },
56+
}),
57+
});
58+
5959
/*
6060
const ListMetadataType = new GraphQLObjectType({
6161
name: 'ListMetadata',

0 commit comments

Comments
 (0)