Skip to content

Commit

Permalink
docs: Fix graphql function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 6, 2023
1 parent 191e17c commit c3e5679
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { TypedBaseDetailComponent, LanguageCode, SharedModule } from '@vendure/a
// This is the TypedDocumentNode & type generated by GraphQL Code Generator
import { graphql } from '../../gql';

export const getReviewDetailDocument = graphql`
export const getReviewDetailDocument = graphql(`
query GetReviewDetail($id: ID!) {
review(id: $id) {
id
Expand All @@ -43,7 +43,7 @@ export const getReviewDetailDocument = graphql`
productId
}
}
`;
`);

@Component({
selector: 'review-detail',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import { TypedBaseListComponent, SharedModule } from '@vendure/admin-ui/core';
// This is the TypedDocumentNode generated by GraphQL Code Generator
import { graphql } from '../../gql';

const getReviewListDocument = graphql`
const getReviewListDocument = graphql(`
query GetReviewList($options: ReviewListOptions) {
reviews(options: $options) {
items {
Expand All @@ -70,7 +70,7 @@ const getReviewListDocument = graphql`
totalItems
}
}
`;
`);

@Component({
selector: 'review-list',
Expand Down

0 comments on commit c3e5679

Please sign in to comment.