mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-24 19:49:24 +02:00
28 lines
988 B
GraphQL
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")
|
|
} |