Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables on GraphQLOperation - Refactor #1963

Merged
merged 6 commits into from
Sep 23, 2021

Conversation

AnthonyMDev
Copy link
Contributor

@AnthonyMDev AnthonyMDev commented Sep 23, 2021

  • Changed GraphQLOptional to GraphQLNullable
  • Changed GraphQLMap to JSONEncodableDictionary
  • Made variables on GraphQLOperation more strongly typed.

@AnthonyMDev AnthonyMDev merged commit e8ac208 into release/1.0-alpha-incubating Sep 23, 2021
@AnthonyMDev AnthonyMDev deleted the 1.0/InputValue-refactor branch September 23, 2021 20:20
import Foundation

@dynamicMemberLookup
public enum GraphQLNullable<Wrapped>: ExpressibleByNilLiteral {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw there is already a reference to the documentation in InputValue.swift, is it worth linking to here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah will add a reference to docs here

@@ -13,25 +13,32 @@ public protocol RequestBodyCreator {
/// - sendQueryDocument: Whether or not to send the full query document. Should default to `true`.
/// - autoPersistQuery: Whether to use auto-persisted query information. Should default to `false`.
/// - Returns: The created `GraphQLMap`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// - Returns: The created `GraphQLMap`
/// - Returns: The created `JSONEncodableDictionary`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

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