-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support to data version and execution metadata #64
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # package-lock.json
context: PolarisContext; | ||
}) { | ||
const { context, graphqlResponse } = responseContext; | ||
if (context.body.operationName !== 'IntrospectionQuery') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you checking the operation name?
@@ -148,6 +148,7 @@ export class PolarisGraphQLServer implements GraphQLServer { | |||
headers, | |||
body: ctx.request.body, | |||
softDeleteConfiguration: this.softDeleteConfiguration, | |||
executionMetadata: { debugDate: new Date() }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove debug date
@@ -159,6 +168,7 @@ describe('reality id tests', () => { | |||
headers: { realityId: 1, includeLinkedOperation: false }, | |||
body: {}, | |||
irrelevantEntities: new IrrelevantEntitiesContainer(), | |||
executionMetadata: { dataVersion: 0 }, | |||
}; | |||
const middlewareParams: ResponseMiddlewareParams = { | |||
root: undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if multiple identicals variables extract
No description provided.