Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@anilthummar

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /