add opnames for all queries

This commit is contained in:
Matt Dunn-Rankin 2020-05-19 14:48:54 -07:00
parent c7707c8ee5
commit b47392f17f
5 changed files with 15 additions and 6 deletions

View file

@ -104,7 +104,7 @@ function SubmitPetForm() {
const [loadPet, { loading }] = useLazyQuery(
gql`
query($petName: String!) {
query SubmitPetForm($petName: String!) {
petOnNeopetsDotCom(petName: $petName) {
color {
id

View file

@ -210,7 +210,12 @@ function useSearchResults(query, outfitState) {
fetchMore: fetchMoreGQL,
} = useQuery(
gql`
query($query: String!, $speciesId: ID!, $colorId: ID!, $offset: Int!) {
query SearchPanel(
$query: String!
$speciesId: ID!
$colorId: ID!
$offset: Int!
) {
itemSearchToFit(
query: $query
speciesId: $speciesId

View file

@ -19,7 +19,7 @@ function SpeciesColorPicker({
onChange,
}) {
const { loading: loadingMeta, error: errorMeta, data: meta } = useQuery(gql`
query {
query SpeciesColorPicker {
allSpecies {
id
name

View file

@ -16,7 +16,7 @@ export default function useOutfitAppearance(outfitState) {
const { loading, error, data } = useQuery(
gql`
query(
query OutfitAppearance(
$wornItemIds: [ID!]!
$speciesId: ID!
$colorId: ID!

View file

@ -25,7 +25,7 @@ function useOutfitState() {
const allItemIds = [...state.wornItemIds, ...state.closetedItemIds];
const { loading, error, data } = useQuery(
gql`
query($allItemIds: [ID!]!, $speciesId: ID!, $colorId: ID!) {
query OutfitState($allItemIds: [ID!]!, $speciesId: ID!, $colorId: ID!) {
items(ids: $allItemIds) {
# TODO: De-dupe this from SearchPanel?
id
@ -198,7 +198,11 @@ function findItemConflicts(itemIdToAdd, state, apolloClient) {
const { items } = apolloClient.readQuery({
query: gql`
query($itemIds: [ID!]!, $speciesId: ID!, $colorId: ID!) {
query OutfitStateItemConflicts(
$itemIds: [ID!]!
$speciesId: ID!
$colorId: ID!
) {
items(ids: $itemIds) {
id
appearanceOn(speciesId: $speciesId, colorId: $colorId) {