1
0
mirror of https://github.com/vercel/commerce.git synced 2025-09-03 14:30:15 +00:00
Files
.vscode
assets
components
config
framework
bigcommerce
commerce
saleor
shopify
swell
vendure
api
auth
cart
customer
product
types
utils
fragments
mutations
queries
active-customer-query.ts
get-all-product-paths-query.ts
get-all-products-query.ts
get-cart-query.ts
get-collections-query.ts
get-product-query.ts
search-query.ts
array-to-tree.ts
normalize.ts
wishlist
.env.template
README.md
codegen.json
commerce.config.json
fetcher.ts
index.tsx
next.config.js
provider.ts
schema.d.ts
schema.graphql
lib
pages
public
.editorconfig
.env.template
.gitignore
.prettierignore
.prettierrc
README.md
codegen.bigcommerce.json
codegen.json
commerce.config.json
global.d.ts
license.md
next-env.d.ts
next.config.js
package.json
postcss.config.js
tailwind.config.js
tsconfig.json
yarn.lock
commerce/framework/vendure/utils/queries/search-query.ts
2021-06-02 11:46:38 -03:00

14 lines
287 B
TypeScript

import { searchResultFragment } from '../fragments/search-result-fragment'
export const searchQuery = /* GraphQL */ `
query search($input: SearchInput!) {
search(input: $input) {
items {
...SearchResult
}
totalItems
}
}
${searchResultFragment}
`