Files
animethemes-server/app/GraphQL/Schemas/List/externalprofile.graphql
T

28 lines
988 B
GraphQL

enum ExternalProfileColumnsOrderable {
ID @enum(value: "profile_id")
NAME
SITE
VISIBILITY
CREATED_AT
UPDATED_AT
DELETED_AT
}
# extend type Query {
# "Returns an external profile resource."
# externalprofile(
# id: String! @bind(class: "App\\Models\\List\\ExternalProfile")
# ): ExternalProfile @first
# @middleware(class: "App\\Http\\Middleware\\Api\\EnabledOnlyOnLocalhost")
# @canModel(ability: "view", injectArgs: true)
# }
extend type Mutation @guard {
syncExternalProfile(
id: Int! @bind(class: "App\\Models\\List\\ExternalProfile", column: "profile_id")
): MessageResponse!
@middleware(class: "App\\Http\\Middleware\\Api\\EnabledOnlyOnLocalhost")
@featureEnabled(class: "App\\Features\\AllowExternalProfileManagement")
@canModel(ability: "update", injectArgs: true, model: "App\\Models\\List\\ExternalProfile")
@field(resolver: "App\\GraphQL\\Mutations\\List\\ExternalProfileMutator@sync")
}