Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

DoctorVoid
Copy link
Contributor

No description provided.

@DoctorVoid DoctorVoid changed the title Backup Added support to data version and execution metadata Jul 16, 2019
context: PolarisContext;
}) {
const { context, graphqlResponse } = responseContext;
if (context.body.operationName !== 'IntrospectionQuery') {
Copy link
Contributor

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() },
Copy link
Contributor

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,
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants