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

How i can modify model class of graph-ql in android ? #1

Open
anilthummar opened this issue Mar 16, 2023 · 0 comments
Open

How i can modify model class of graph-ql in android ? #1

anilthummar opened this issue Mar 16, 2023 · 0 comments

Comments

@anilthummar
Copy link

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?,
) `

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

No branches or pull requests

1 participant