Browse Source

Graphql schema

- make Location external
Alexey Kim 2 years ago
parent
commit
1ab65a4221
1 changed files with 6 additions and 6 deletions
  1. 6 6
      graphql/schema.graphql

+ 6 - 6
graphql/schema.graphql

@@ -746,26 +746,26 @@ type StoreAvailability {
     available: Boolean!
 
     # The location where this product variant is stocked at.
-    location: Location!
+    location: Location! @provides(fields: "id")
 
     # Returns the estimated amount of time it takes for pickup to be ready (Example: Usually ready in 24 hours).
     pickUpTime: String!
 }
 
 # Represents a location where product inventory is held.
-type Location implements Node {
+extend type Location implements Node {
     # The address of the location.
-    address: LocationAddress!
+    address: LocationAddress! @external
 
     # A globally-unique identifier.
-    id: ID!
+    id: ID! @external
 
     # The name of the location.
-    name: String!
+    name: String! @external
 }
 
 # Represents the address of a location.
-type LocationAddress {
+extend type LocationAddress {
     # The first line of the address for the location.
     address1: String