You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @generated
// This file was automatically generated and should not be edited.
@_exportedimport ApolloAPI
import EnvoyMobile
structEmployeeFragment:EnvoySchema.SelectionSet,Fragment{publicstaticvarfragmentDefinition:StaticString{""" fragment EmployeeFragment on Employee { __typename id email name phoneNumber profilePictureUrl favorite hideFromEmployeeSchedule signInStatus }"""}publiclet__data:DataDictpublicinit(_dataDict:DataDict){ __data = _dataDict }publicstaticvar__parentType:ApolloAPI.ParentType{EnvoySchema.Objects.Employee }publicstaticvar__selections:[ApolloAPI.Selection]{[.field("__typename",String.self),.field("id",Int.self),.field("email",String?.self),.field("name",String.self),.field("phoneNumber",String?.self),.field("profilePictureUrl",String?.self),.field("favorite",Bool.self),.field("hideFromEmployeeSchedule",Bool.self),.field("signInStatus",Bool.self),]}publicvarid:Int{__data["id"]}publicvaremail:String?{__data["email"]}publicvarname:String{__data["name"]}publicvarphoneNumber:String?{__data["phoneNumber"]}publicvarprofilePictureUrl:String?{__data["profilePictureUrl"]}publicvarfavorite:Bool{__data["favorite"]}publicvarhideFromEmployeeSchedule:Bool{__data["hideFromEmployeeSchedule"]}publicvarsignInStatus:Bool{__data["signInStatus"]}}
in fact there is no difference in the generated results by adding or removing selectionSetInitializers from my config.
I tried deleting apollo entirely, nuking my SPM cache, and re adding it, along with regenerating the CLI (just in case it was some old cached version of the cli). Does not seem to be helping.
Logs
No response
Anything else?
I am using Apollo with SPM
The text was updated successfully, but these errors were encountered:
It looks like you've got a bug in your config file. Everything from selectionSetInitializers down should be in an options object. So your config should look like this:
Our codegen engine should probably be catching this problem and alerting you to the error though. @calvincestari Should we create an issue for improving that validation?
Our codegen engine should probably be catching this problem and alerting you to the error though. @calvincestari Should we create an issue for improving that validation?
Definitely should be catching something like this and warning about it.
Summary
my named fragments do not seem to be getting inits generated after adding the following to my configuration:
Here is an example fragment and its generated code:
in fact there is no difference in the generated results by adding or removing
selectionSetInitializers
from my config.Version
1.1.0
Steps to reproduce the behavior
Project is not open source, so I can't share it.
My configuration is as follows:
I tried deleting apollo entirely, nuking my SPM cache, and re adding it, along with regenerating the CLI (just in case it was some old cached version of the cli). Does not seem to be helping.
Logs
No response
Anything else?
I am using Apollo with SPM
The text was updated successfully, but these errors were encountered: