Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8c6cdb8
Committing initial JS
BobaFetters Jul 23, 2025
2e45dc0
Checking in progress to fix codegen build script
BobaFetters Jul 31, 2025
9dd74c2
Merge branch 'main' into feature/field-policy
BobaFetters Jul 31, 2025
2dec823
Checking in fieldPolicy updates
BobaFetters Aug 21, 2025
6406231
Merge branch 'main' into feature/field-policy
BobaFetters Aug 21, 2025
660cb3e
Restructured field policy code
BobaFetters Aug 21, 2025
990ab11
CHecking in progress
BobaFetters Aug 25, 2025
5c71da2
Finishing SchemaConfigurationFIleGenerator updates
BobaFetters Aug 26, 2025
3634090
Minor edit
BobaFetters Aug 26, 2025
e0e2760
Addressing feedback and code cleanup
BobaFetters Aug 27, 2025
2292dfc
Fixing a couple tests
BobaFetters Aug 27, 2025
f0cf57a
Merge branch 'main' into feature/field-policy
BobaFetters Aug 27, 2025
fa8f597
Add FieldPolicyProvider tests
BobaFetters Aug 28, 2025
12cf83d
Adding a little documentation
BobaFetters Aug 28, 2025
4dc1acc
Updating frontend bundle
BobaFetters Aug 30, 2025
d8d9e88
Merge branch 'main' into feature/field-policy
BobaFetters Aug 30, 2025
caba123
npm update
BobaFetters Aug 30, 2025
1fd7c08
fixing npm issue
BobaFetters Aug 30, 2025
0042f7e
Fix import statement
BobaFetters Sep 1, 2025
a6cc1ec
Updating github actions macos runner version
BobaFetters Sep 1, 2025
2ccc6cc
Updating FieldPolicyProvider handling
BobaFetters Sep 1, 2025
aca4733
Reverting changes
BobaFetters Sep 1, 2025
cb8b366
Adding optional unwrap
BobaFetters Sep 2, 2025
bf593f4
Increase test timeouts
BobaFetters Sep 2, 2025
07915bd
Addressing PR feedback
BobaFetters Sep 3, 2025
e901a36
Testing test timeout
BobaFetters Sep 3, 2025
34531e8
Merge branch 'main' into feature/field-policy
BobaFetters Sep 3, 2025
28659b0
Merge branch 'main' into feature/field-policy
BobaFetters Sep 8, 2025
99a5b10
Testing ci failures
BobaFetters Sep 8, 2025
8e26e69
Adjusting fieldpolicyprovider
BobaFetters Sep 8, 2025
5abe5d5
Changing protocol for field policy functions
BobaFetters Sep 8, 2025
14d6702
testing unit tests
BobaFetters Sep 8, 2025
1d25c20
Adjusting for tests
BobaFetters Sep 8, 2025
eb2a2c9
Revert "Adjusting for tests"
BobaFetters Sep 8, 2025
5d5199f
Revert "testing unit tests"
BobaFetters Sep 8, 2025
cabc264
Revert "Changing protocol for field policy functions"
BobaFetters Sep 8, 2025
9123eb5
Revert "Adjusting fieldpolicyprovider"
BobaFetters Sep 8, 2025
2a6d9a7
More ci testing
BobaFetters Sep 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Bird: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Bird
Expand All @@ -26,17 +26,17 @@ public class Bird: MockObject {

public extension Mock where O == Bird {
convenience init(
bodyTemperature: Int? = nil,
favoriteToy: String? = nil,
height: Mock<Height>? = nil,
bodyTemperature: Int = 0,
favoriteToy: String = "",
height: Mock<Height> = Mock<Height>(),
humanName: String? = nil,
id: AnimalKingdomAPI.ID? = nil,
laysEggs: Bool? = nil,
id: AnimalKingdomAPI.ID = "",
laysEggs: Bool = false,
owner: Mock<Human>? = nil,
predators: [(any AnyMock)]? = nil,
predators: [(any AnyMock)] = [],
skinCovering: GraphQLEnum<AnimalKingdomAPI.SkinCovering>? = nil,
species: String? = nil,
wingspan: Double? = nil
species: String = "",
wingspan: Double = 0.0
) {
self.init()
_setScalar(bodyTemperature, for: \.bodyTemperature)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Cat: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Cat
Expand All @@ -26,17 +26,17 @@ public class Cat: MockObject {

public extension Mock where O == Cat {
convenience init(
bodyTemperature: Int? = nil,
favoriteToy: String? = nil,
height: Mock<Height>? = nil,
bodyTemperature: Int = 0,
favoriteToy: String = "",
height: Mock<Height> = Mock<Height>(),
humanName: String? = nil,
id: AnimalKingdomAPI.ID? = nil,
isJellicle: Bool? = nil,
laysEggs: Bool? = nil,
id: AnimalKingdomAPI.ID = "",
isJellicle: Bool = false,
laysEggs: Bool = false,
owner: Mock<Human>? = nil,
predators: [(any AnyMock)]? = nil,
predators: [(any AnyMock)] = [],
skinCovering: GraphQLEnum<AnimalKingdomAPI.SkinCovering>? = nil,
species: String? = nil
species: String = ""
) {
self.init()
_setScalar(bodyTemperature, for: \.bodyTemperature)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Crocodile: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Crocodile
Expand All @@ -22,12 +22,12 @@ public class Crocodile: MockObject {

public extension Mock where O == Crocodile {
convenience init(
age: Int? = nil,
height: Mock<Height>? = nil,
id: AnimalKingdomAPI.ID? = nil,
predators: [(any AnyMock)]? = nil,
age: Int = 0,
height: Mock<Height> = Mock<Height>(),
id: AnimalKingdomAPI.ID = "",
predators: [(any AnyMock)] = [],
skinCovering: GraphQLEnum<AnimalKingdomAPI.SkinCovering>? = nil,
species: String? = nil,
species: String = "",
tag: String? = nil
) {
self.init()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Dog: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Dog
Expand All @@ -28,17 +28,17 @@ public class Dog: MockObject {
public extension Mock where O == Dog {
convenience init(
birthdate: AnimalKingdomAPI.CustomDate? = nil,
bodyTemperature: Int? = nil,
favoriteToy: String? = nil,
height: Mock<Height>? = nil,
bodyTemperature: Int = 0,
favoriteToy: String = "",
height: Mock<Height> = Mock<Height>(),
houseDetails: AnimalKingdomAPI.Object? = nil,
humanName: String? = nil,
id: AnimalKingdomAPI.ID? = nil,
laysEggs: Bool? = nil,
id: AnimalKingdomAPI.ID = "",
laysEggs: Bool = false,
owner: Mock<Human>? = nil,
predators: [(any AnyMock)]? = nil,
predators: [(any AnyMock)] = [],
skinCovering: GraphQLEnum<AnimalKingdomAPI.SkinCovering>? = nil,
species: String? = nil
species: String = ""
) {
self.init()
_setScalar(birthdate, for: \.birthdate)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Fish: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Fish
Expand All @@ -23,14 +23,14 @@ public class Fish: MockObject {

public extension Mock where O == Fish {
convenience init(
favoriteToy: String? = nil,
height: Mock<Height>? = nil,
favoriteToy: String = "",
height: Mock<Height> = Mock<Height>(),
humanName: String? = nil,
id: AnimalKingdomAPI.ID? = nil,
id: AnimalKingdomAPI.ID = "",
owner: Mock<Human>? = nil,
predators: [(any AnyMock)]? = nil,
predators: [(any AnyMock)] = [],
skinCovering: GraphQLEnum<AnimalKingdomAPI.SkinCovering>? = nil,
species: String? = nil
species: String = ""
) {
self.init()
_setScalar(favoriteToy, for: \.favoriteToy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Height: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Height
Expand All @@ -20,11 +20,11 @@ public class Height: MockObject {

public extension Mock where O == Height {
convenience init(
centimeters: Double? = nil,
feet: Int? = nil,
centimeters: Double = 0.0,
feet: Int = 0,
inches: Int? = nil,
meters: Int? = nil,
relativeSize: GraphQLEnum<AnimalKingdomAPI.RelativeSize>? = nil
meters: Int = 0,
relativeSize: GraphQLEnum<AnimalKingdomAPI.RelativeSize> = .case(.large)
) {
self.init()
_setScalar(centimeters, for: \.centimeters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Human: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Human
Expand All @@ -23,14 +23,14 @@ public class Human: MockObject {

public extension Mock where O == Human {
convenience init(
bodyTemperature: Int? = nil,
firstName: String? = nil,
height: Mock<Height>? = nil,
id: AnimalKingdomAPI.ID? = nil,
laysEggs: Bool? = nil,
predators: [(any AnyMock)]? = nil,
bodyTemperature: Int = 0,
firstName: String = "",
height: Mock<Height> = Mock<Height>(),
id: AnimalKingdomAPI.ID = "",
laysEggs: Bool = false,
predators: [(any AnyMock)] = [],
skinCovering: GraphQLEnum<AnimalKingdomAPI.SkinCovering>? = nil,
species: String? = nil
species: String = ""
) {
self.init()
_setScalar(bodyTemperature, for: \.bodyTemperature)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public extension MockObject {
typealias Animal = Interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public extension MockObject {
typealias ClassroomPet = Union
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Mutation: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Mutation
Expand All @@ -16,7 +16,7 @@ public class Mutation: MockObject {

public extension Mock where O == Mutation {
convenience init(
adoptPet: (any AnyMock)? = nil
adoptPet: (any AnyMock) = Mock<Cat>()
) {
self.init()
_setEntity(adoptPet, for: \.adoptPet)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class PetRock: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.PetRock
Expand All @@ -19,9 +19,9 @@ public class PetRock: MockObject {

public extension Mock where O == PetRock {
convenience init(
favoriteToy: String? = nil,
favoriteToy: String = "",
humanName: String? = nil,
id: AnimalKingdomAPI.ID? = nil,
id: AnimalKingdomAPI.ID = "",
owner: Mock<Human>? = nil
) {
self.init()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Query: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Query
Expand All @@ -19,10 +19,10 @@ public class Query: MockObject {

public extension Mock where O == Query {
convenience init(
allAnimals: [(any AnyMock)]? = nil,
allAnimals: [(any AnyMock)] = [],
classroomPets: [(any AnyMock)?]? = nil,
findPet: [(any AnyMock)]? = nil,
pets: [(any AnyMock)]? = nil
findPet: [(any AnyMock)] = [],
pets: [(any AnyMock)] = []
) {
self.init()
_setList(allAnimals, for: \.allAnimals)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file was automatically generated and should not be edited.

import ApolloTestSupport
import AnimalKingdomAPI
@testable import AnimalKingdomAPI

public class Rat: MockObject {
public static let objectType: ApolloAPI.Object = AnimalKingdomAPI.Objects.Rat
Expand All @@ -23,14 +23,14 @@ public class Rat: MockObject {

public extension Mock where O == Rat {
convenience init(
favoriteToy: String? = nil,
height: Mock<Height>? = nil,
favoriteToy: String = "",
height: Mock<Height> = Mock<Height>(),
humanName: String? = nil,
id: AnimalKingdomAPI.ID? = nil,
id: AnimalKingdomAPI.ID = "",
owner: Mock<Human>? = nil,
predators: [(any AnyMock)]? = nil,
predators: [(any AnyMock)] = [],
skinCovering: GraphQLEnum<AnimalKingdomAPI.SkinCovering>? = nil,
species: String? = nil
species: String = ""
) {
self.init()
_setScalar(favoriteToy, for: \.favoriteToy)
Expand Down
Loading
Loading