Skip to content

Commit b62c9e2

Browse files
committed
ensure that the generated fields appear after the user-defined fields
1 parent a64ed41 commit b62c9e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graphql-resolver-generator/resources/resolver.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ const resolvers = {
6767
% for type in data['types']:
6868
${type['Name']}: {
6969
id: (parent, args, context, info) => parent._id,
70-
% for field in type['DateTime']:
71-
${field}: async (parent, args, context, info) => new Date(parent.${field}),
72-
% endfor
7370
% for field in type['fields']:
7471
${field}: async (parent, args, context, info) =>
7572
await driver.getEdge(parent, args, info),
7673
% endfor
74+
% for field in type['DateTime']:
75+
${field}: async (parent, args, context, info) => new Date(parent.${field}),
76+
% endfor
7777
},
7878
% endfor
7979

0 commit comments

Comments
 (0)