Skip to content

Commit

Permalink
Merge pull request #4275 from artsy/staging
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
araujobarret authored Aug 3, 2022
2 parents 1d8e6b5 + 1865d19 commit 299f556
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
30 changes: 30 additions & 0 deletions _schemaV2.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -12945,6 +12945,21 @@ type Query {

# Get price insights for a market.
marketPriceInsights(artistId: ID!, medium: String!): MarketPriceInsights

# A Search for Artists
matchArtist(
# Exclude these MongoDB ids from results
excludeIDs: [String]

# Page to retrieve. Default: 1.
page: Int

# Maximum number of items to retrieve. Default: 5.
size: Int

# Your search term
term: String!
): [Artist]
matchConnection(
after: String
before: String
Expand Down Expand Up @@ -16327,6 +16342,21 @@ type Viewer {
size: Int
slugs: [String!]
): [MarketingCollection]

# A Search for Artists
matchArtist(
# Exclude these MongoDB ids from results
excludeIDs: [String]

# Page to retrieve. Default: 1.
page: Int

# Maximum number of items to retrieve. Default: 5.
size: Int

# Your search term
term: String!
): [Artist]
matchConnection(
after: String
before: String
Expand Down
2 changes: 1 addition & 1 deletion src/schema/v2/match/__tests__/artist.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { runQuery } from "schema/v2/test/utils"
import gql from "lib/gql"

describe.skip("MatchArtist", () => {
describe("MatchArtist", () => {
it("queries match/artist for the term 'ok'", () => {
const query = gql`
{
Expand Down
4 changes: 2 additions & 2 deletions src/schema/v2/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import Me from "./me"
import { BidderPositionMutation } from "./me/bidder_position_mutation"
// import MatchGene from "./match/gene"
// import SaleArtwork from "./sale_artwork"
// import MatchArtist from "./match/artist"
import MatchArtist from "./match/artist"
// import { SaleArtworksConnectionField } from "./sale_artworks"
import Conversation from "./me/conversation"
import SendConversationMessageMutation from "./me/conversation/send_message_mutation"
Expand Down Expand Up @@ -212,7 +212,7 @@ const rootFields = {
resolve: Image.resolve,
description: "Do not use (only used internally for stitching)",
},
// matchArtist: MatchArtist,
matchArtist: MatchArtist,
// matchGene: MatchGene,
matchConnection: MatchConnection,
me: Me,
Expand Down

0 comments on commit 299f556

Please sign in to comment.