Skip to content

Commit

Permalink
Add traits filter. Remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarvelle committed Dec 13, 2024
1 parent 1f64d5c commit 85cbe73
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/api/searchApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export async function search(searchQuery: GQLQuerySearchArgs, context: Context):
"context-types": searchQuery.contextTypes,
"resource-types": searchQuery.resourceTypes,
"language-filter": searchQuery.languageFilter,
"context-filters": searchQuery.contextFilters,
"grep-codes": searchQuery.grepCodes,
"aggregate-paths": searchQuery.aggregatePaths,
"filter-inactive": searchQuery.filterInactive,
Expand Down Expand Up @@ -100,7 +99,6 @@ const queryOnGivenPage = (searchQuery: GQLQuerySearchWithoutPaginationArgs, page
"context-types": searchQuery.contextTypes,
"resource-types": searchQuery.resourceTypes,
"language-filter": searchQuery.languageFilter,
"context-filters": searchQuery.contextFilters,
})}`,
context,
{ cache: "no-store" },
Expand Down
3 changes: 1 addition & 2 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1668,14 +1668,14 @@ export const typeDefs = gql`
language: String
ids: [Int!]
resourceTypes: String
contextFilters: String
levels: String
sort: String
fallback: String
subjects: String
languageFilter: String
relevance: String
grepCodes: String
traits: [String!]
aggregatePaths: [String!]
filterInactive: Boolean
): Search
Expand Down Expand Up @@ -1714,7 +1714,6 @@ export const typeDefs = gql`
language: String
ids: [Int!]
resourceTypes: String
contextFilters: String
levels: String
sort: String
fallback: String
Expand Down
3 changes: 1 addition & 2 deletions src/types/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,6 @@ export type GQLQueryResourceEmbedsArgs = {

export type GQLQuerySearchArgs = {
aggregatePaths?: InputMaybe<Array<Scalars['String']['input']>>;
contextFilters?: InputMaybe<Scalars['String']['input']>;
contextTypes?: InputMaybe<Scalars['String']['input']>;
fallback?: InputMaybe<Scalars['String']['input']>;
filterInactive?: InputMaybe<Scalars['Boolean']['input']>;
Expand All @@ -2154,11 +2153,11 @@ export type GQLQuerySearchArgs = {
resourceTypes?: InputMaybe<Scalars['String']['input']>;
sort?: InputMaybe<Scalars['String']['input']>;
subjects?: InputMaybe<Scalars['String']['input']>;
traits?: InputMaybe<Array<Scalars['String']['input']>>;
};


export type GQLQuerySearchWithoutPaginationArgs = {
contextFilters?: InputMaybe<Scalars['String']['input']>;
contextTypes?: InputMaybe<Scalars['String']['input']>;
fallback?: InputMaybe<Scalars['String']['input']>;
ids?: InputMaybe<Array<Scalars['Int']['input']>>;
Expand Down

0 comments on commit 85cbe73

Please sign in to comment.