Skip to content

Commit

Permalink
Move over updated schema
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyMDev committed Sep 21, 2021
1 parent e7daf86 commit 89152fc
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 14 deletions.
26 changes: 12 additions & 14 deletions Apollo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@
DE3C7A94260A6C1000D2F4FF /* ApolloUtils.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9B68353E2463481A00337AE6 /* ApolloUtils.framework */; };
DE3C7A95260A6C1000D2F4FF /* ApolloUtils.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9B68353E2463481A00337AE6 /* ApolloUtils.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
DE3C7B4A260A73D800D2F4FF /* AnimalKingdomAPI.h in Headers */ = {isa = PBXBuildFile; fileRef = DE3C79A9260A6ACD00D2F4FF /* AnimalKingdomAPI.h */; settings = {ATTRIBUTES = (Public, ); }; };
DE3C7B4B260A73F900D2F4FF /* schema.graphqls in Resources */ = {isa = PBXBuildFile; fileRef = DE3C7AB9260A6D3E00D2F4FF /* schema.graphqls */; };
DE56DC232683B2020090D6E4 /* DefaultInterceptorProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE56DC222683B2020090D6E4 /* DefaultInterceptorProvider.swift */; };
DE674D9D261CEEE4000E8FC8 /* c.txt in Resources */ = {isa = PBXBuildFile; fileRef = 9B2061172591B3550020D1E0 /* c.txt */; };
DE674D9E261CEEE4000E8FC8 /* b.txt in Resources */ = {isa = PBXBuildFile; fileRef = 9B2061182591B3550020D1E0 /* b.txt */; };
Expand Down Expand Up @@ -806,16 +805,16 @@
DE2FCF2526E8083A0057EA67 /* Object.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Object.swift; sourceTree = "<group>"; };
DE2FCF2626E8083A0057EA67 /* Field.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Field.swift; sourceTree = "<group>"; };
DE2FCF2B26E808560057EA67 /* ObjectType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ObjectType.swift; sourceTree = "<group>"; };
DE2FCF2D26E8092B0057EA67 /* AnimalSchema.graphqls */ = {isa = PBXFileReference; lastKnownFileType = text; path = AnimalSchema.graphqls; sourceTree = "<group>"; };
DE2FCF2E26E8092B0057EA67 /* AllAnimals.graphql */ = {isa = PBXFileReference; lastKnownFileType = text; path = AllAnimals.graphql; sourceTree = "<group>"; };
DE2FCF2F26E8092B0057EA67 /* ClassroomPets.graphql */ = {isa = PBXFileReference; lastKnownFileType = text; path = ClassroomPets.graphql; sourceTree = "<group>"; };
DE2FCF3026E8092B0057EA67 /* WarmBloodedDetails.graphql */ = {isa = PBXFileReference; lastKnownFileType = text; path = WarmBloodedDetails.graphql; sourceTree = "<group>"; };
DE2FCF3126E8092B0057EA67 /* PetDetails.graphql */ = {isa = PBXFileReference; lastKnownFileType = text; path = PetDetails.graphql; sourceTree = "<group>"; };
DE2FCF3226E8092B0057EA67 /* HeightInMeters.graphql */ = {isa = PBXFileReference; lastKnownFileType = text; path = HeightInMeters.graphql; sourceTree = "<group>"; };
DE3C7973260A646300D2F4FF /* dist */ = {isa = PBXFileReference; lastKnownFileType = folder; path = dist; sourceTree = "<group>"; };
DE3C79A9260A6ACD00D2F4FF /* AnimalKingdomAPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AnimalKingdomAPI.h; sourceTree = "<group>"; };
DE3C79AA260A6ACD00D2F4FF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
DE3C7A11260A6B9800D2F4FF /* AnimalKingdomAPI.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AnimalKingdomAPI.framework; sourceTree = BUILT_PRODUCTS_DIR; };
DE3C7AB8260A6D3E00D2F4FF /* PetDetails.graphql */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = PetDetails.graphql; sourceTree = "<group>"; };
DE3C7AB9260A6D3E00D2F4FF /* schema.graphqls */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = schema.graphqls; sourceTree = "<group>"; };
DE3C7ABA260A6D3E00D2F4FF /* WarmBloodedDetails.graphql */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WarmBloodedDetails.graphql; sourceTree = "<group>"; };
DE3C7ABB260A6D3E00D2F4FF /* HeightInMeters.graphql */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HeightInMeters.graphql; sourceTree = "<group>"; };
DE3C7ABC260A6D3E00D2F4FF /* AllAnimals.graphql */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = AllAnimals.graphql; sourceTree = "<group>"; };
DE3C7ABD260A6D3E00D2F4FF /* ClassroomPets.graphql */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ClassroomPets.graphql; sourceTree = "<group>"; };
DE3C7B10260A6FC900D2F4FF /* SelectionSet.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SelectionSet.swift; sourceTree = "<group>"; };
DE3C7B11260A6FC900D2F4FF /* ResponseDict.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResponseDict.swift; sourceTree = "<group>"; };
DE3C7B12260A6FC900D2F4FF /* FragmentProtocols.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FragmentProtocols.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1722,12 +1721,12 @@
DE3C7AB7260A6D3E00D2F4FF /* graphql */ = {
isa = PBXGroup;
children = (
DE3C7AB8260A6D3E00D2F4FF /* PetDetails.graphql */,
DE3C7AB9260A6D3E00D2F4FF /* schema.graphqls */,
DE3C7ABA260A6D3E00D2F4FF /* WarmBloodedDetails.graphql */,
DE3C7ABB260A6D3E00D2F4FF /* HeightInMeters.graphql */,
DE3C7ABC260A6D3E00D2F4FF /* AllAnimals.graphql */,
DE3C7ABD260A6D3E00D2F4FF /* ClassroomPets.graphql */,
DE2FCF2E26E8092B0057EA67 /* AllAnimals.graphql */,
DE2FCF2D26E8092B0057EA67 /* AnimalSchema.graphqls */,
DE2FCF2F26E8092B0057EA67 /* ClassroomPets.graphql */,
DE2FCF3226E8092B0057EA67 /* HeightInMeters.graphql */,
DE2FCF3126E8092B0057EA67 /* PetDetails.graphql */,
DE2FCF3026E8092B0057EA67 /* WarmBloodedDetails.graphql */,
);
path = graphql;
sourceTree = "<group>";
Expand Down Expand Up @@ -2509,7 +2508,6 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
DE3C7B4B260A73F900D2F4FF /* schema.graphqls in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ interface Pet {
owner: Human
}

interface HousePet implements Animal & Pet {
species: String!
height: Height!
predators: [Animal!]!
skinCovering: SkinCovering
humanName: String
favoriteToy: String!
owner: Human
bestFriend: Pet
rival: Pet
livesWith: ClassroomPet
}

interface WarmBlooded implements Animal {
species: String!
height: Height!
Expand Down Expand Up @@ -58,6 +71,21 @@ type Cat implements Animal & Pet & WarmBlooded {
isJellicle: Boolean!
}

type Dog implements Animal & Pet & HousePet & WarmBlooded {
species: String!
height: Height!
predators: [Animal!]!
skinCovering: SkinCovering
humanName: String
favoriteToy: String!
owner: Human
bodyTemperature: Int!
laysEggs: Boolean!
bestFriend: HousePet
rival: Cat
livesWith: Bird
}

type Bird implements Animal & Pet & WarmBlooded {
species: String!
height: Height!
Expand Down

0 comments on commit 89152fc

Please sign in to comment.