Skip to content

Conversation

BobaFetters
Copy link
Member

@BobaFetters BobaFetters commented Aug 26, 2025

Adds support for the @fieldPolicy directive which allows users to configure what cache keys a specific field should use to look for data in the cache before potentially making a network request.

Also adds two new functions to the SchemaConfiguration protocol to allow programmatic configuration of field policies.

Note - have a couple of tests I am working on fixing but outside that the code is ready for review

Commiting the initial JS work that was done, before making changes to adjust how the field policies are handled from the JS side and add extra validation around lists.
# Conflicts:
#	apollo-ios-codegen/Sources/GraphQLCompiler/ApolloCodegenFrontendBundle.swift
#	apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript/package-lock.json
#	apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript/package.json
Checking in complete field policy functionality, need to do some code clean up and abstract some things into their own files, and add new SchemaConfiguration function
Copy link

netlify bot commented Aug 26, 2025

Deploy Preview for apollo-ios-docc canceled.

Name Link
🔨 Latest commit 34531e8
🔍 Latest deploy log https://app.netlify.com/projects/apollo-ios-docc/deploys/68bb0f45579ae30008abf2b9

@apollo-librarian
Copy link

apollo-librarian bot commented Aug 26, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: c71967646c47073220e8cb8e
Build Logs: View logs

@BobaFetters BobaFetters self-assigned this Aug 26, 2025
@BobaFetters BobaFetters marked this pull request as draft August 27, 2025 16:23
@BobaFetters
Copy link
Member Author

Converted this to draft since it should have been that way to begin with, addressed feedback, still need to add a few tests around the FieldPolicyProvider and add some more code documentation. Full documentation for doc site will be done in a separate PR

# Conflicts:
#	apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript/package-lock.json
Github actions migrated their mac runners to use macos-15 as the latest image now, which doesn't support Xcode 15.4, need to specify macos-14 runners until we are ready to drop Xcode 15.4
@BobaFetters BobaFetters marked this pull request as ready for review September 2, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants