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
i have created below class by apollo graph ql, i want to modify this class in android. ?
can i modify model class of graph-ql in android? how to modify this model class ? is any way to do it ?
` public data class LoginMutation(
public val email: String,
public val password: String,
) : Mutation<LoginMutation.Data> {
public override fun id(): String = OPERATION_ID
public override fun document(): String = OPERATION_DOCUMENT
public override fun name(): String = OPERATION_NAME
public override fun serializeVariables(writer: JsonWriter,
customScalarAdapters: CustomScalarAdapters): Unit {
LoginMutation_VariablesAdapter.toJson(writer, customScalarAdapters, this)
}
public override fun adapter(): Adapter = LoginMutation_ResponseAdapter.Data.obj()
public override fun rootField(): CompiledField = CompiledField.Builder(
name = "data",
type = com.example.graphqlquerymutationdemo.type.Mutation.type
)
.selections(selections = LoginMutationSelections.__root)
.build()
@ApolloAdaptableWith(LoginMutation_ResponseAdapter.Data::class)
public data class Data(
public val login: Login,
) : Mutation.Data
public data class Login(
public val meta: Meta,
public val data: Data1,
)
public data class Meta(
public val status: Boolean,
public val message: String,
public val message_code: String,
public val status_code: Int,
)
public data class Data1(
public val token_type: String,
public val expires_in: String,
public val access_token: String,
public val refresh_token: String,
public val user: User?,
)
public data class User(
public val uuid: String,
public val first_name: String?,
public val last_name: String?,
public val email: String,
public val mobile_number: String?,
) `
The text was updated successfully, but these errors were encountered:
i have created below class by apollo graph ql, i want to modify this class in android. ?
can i modify model class of graph-ql in android? how to modify this model class ? is any way to do it ?
` public data class LoginMutation(
public val email: String,
public val password: String,
) : Mutation<LoginMutation.Data> {
public override fun id(): String = OPERATION_ID
public override fun document(): String = OPERATION_DOCUMENT
public override fun name(): String = OPERATION_NAME
public override fun serializeVariables(writer: JsonWriter,
customScalarAdapters: CustomScalarAdapters): Unit {
LoginMutation_VariablesAdapter.toJson(writer, customScalarAdapters, this)
}
public override fun adapter(): Adapter = LoginMutation_ResponseAdapter.Data.obj()
public override fun rootField(): CompiledField = CompiledField.Builder(
name = "data",
type = com.example.graphqlquerymutationdemo.type.Mutation.type
)
.selections(selections = LoginMutationSelections.__root)
.build()
@ApolloAdaptableWith(LoginMutation_ResponseAdapter.Data::class)
public data class Data(
public val login: Login,
) : Mutation.Data
public data class Login(
public val meta: Meta,
public val data: Data1,
)
public data class Meta(
public val status: Boolean,
public val message: String,
public val message_code: String,
public val status_code: Int,
)
public data class Data1(
public val token_type: String,
public val expires_in: String,
public val access_token: String,
public val refresh_token: String,
public val user: User?,
)
public data class User(
public val uuid: String,
public val first_name: String?,
public val last_name: String?,
public val email: String,
public val mobile_number: String?,
) `
The text was updated successfully, but these errors were encountered: