Răsfoiți Sursa

docs: Fix graphql function calls

Michael Bromley 2 ani în urmă
părinte
comite
c3e5679e44

+ 2 - 2
docs/docs/guides/extending-the-admin-ui/creating-detail-views/index.md

@@ -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
@@ -43,7 +43,7 @@ export const getReviewDetailDocument = graphql`
       productId
     }
   }
-`;
+`);
 
 @Component({
     selector: 'review-detail',

+ 2 - 2
docs/docs/guides/extending-the-admin-ui/creating-list-views/index.md

@@ -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 {
@@ -70,7 +70,7 @@ const getReviewListDocument = graphql`
       totalItems
     }
   }
-`;
+`);
 
 @Component({
     selector: 'review-list',