text: "use strict";(self.webpackChunkdocusaurus_2=self.webpackChunkdocusaurus_2||[]).push([[6652],{3905:(e,a,t)=>{t.d(a,{Zo:()=>h,kt:()=>s});var n=t(7294);function r(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function i(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?i(Object(t),!0).forEach((function(a){r(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}function l(e,a){if(null==e)return{};var t,n,r=function(e,a){if(null==e)return{};var t,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],a.indexOf(t)>=0||(r[t]=e[t]);return r}(e,a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],a.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var c=n.createContext({}),d=function(e){var a=n.useContext(c),t=a;return e&&(t="function"==typeof e?e(a):o(o({},a),e)),t},h=function(e){var a=d(e.components);return n.createElement(c.Provider,{value:a},e.children)},m={inlineCode:"code",wrapper:function(e){var a=e.children;return n.createElement(n.Fragment,{},a)}},p=n.forwardRef((function(e,a){var t=e.components,r=e.mdxType,i=e.originalType,c=e.parentName,h=l(e,["components","mdxType","originalType","parentName"]),p=d(t),s=r,u=p["".concat(c,".").concat(s)]||p[s]||m[s]||i;return t?n.createElement(u,o(o({ref:a},h),{},{components:t})):n.createElement(u,o({ref:a},h))}));function s(e,a){var t=arguments,r=a&&a.mdxType;if("string"==typeof e||r){var i=t.length,o=new Array(i);o[0]=p;var l={};for(var c in a)hasOwnProperty.call(a,c)&&(l[c]=a[c]);l.originalType=e,l.mdxType="string"==typeof e?e:r,o[1]=l;for(var d=2;d<i;d++)o[d]=t[d];return n.createElement.apply(null,o)}return n.createElement.apply(null,t)}p.displayName="MDXCreateElement"},59:(e,a,t)=>{t.r(a),t.d(a,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var n=t(7462),r=(t(7294),t(3905));const i={id:"character",title:"Character",hide_table_of_contents:!0,pagination_next:null,pagination_prev:null},o=void 0,l={unversionedId:"schema/objects/character",id:"schema/objects/character",title:"Character",description:"A character that features in an anime or manga",source:"@site/docs/schema/objects/character.mdx",sourceDirName:"schema/objects",slug:"/schema/objects/character",permalink:"/schema/objects/character",draft:!1,tags:[],version:"current",frontMatter:{id:"character",title:"Character",hide_table_of_contents:!0,pagination_next:null,pagination_prev:null},sidebar:"basic"},c={},d=[{value:"Fields",id:"fields",level:3},{value:"<code>id</code> (<code>Int!</code>)",id:"id-int",level:4},{value:"<code>name</code> (<code>CharacterName</code>)",id:"name-charactername",level:4},{value:"<code>image</code> (<code>CharacterImage</code>)",id:"image-characterimage",level:4},{value:"<code>description</code> (<code>String</code>)",id:"description-string",level:4},{value:"<code>gender</code> (<code>String</code>)",id:"gender-string",level:4},{value:"<code>dateOfBirth</code> (<code>FuzzyDate</code>)",id:"dateofbirth-fuzzydate",level:4},{value:"<code>age</code> (<code>String</code>)",id:"age-string",level:4},{value:"<code>bloodType</code> (<code>String</code>)",id:"bloodtype-string",level:4},{value:"<code>isFavourite</code> (<code>Boolean!</code>)",id:"isfavourite-boolean",level:4},{value:"<code>isFavouriteBlocked</code> (<code>Boolean!</code>)",id:"isfavouriteblocked-boolean",level:4},{value:"<code>siteUrl</code> (<code>String</code>)",id:"siteurl-string",level:4},{value:"<code>media</code> (<code>MediaConnection</code>)",id:"media-mediaconnection",level:4},{value:"<code>updatedAt</code> (<code>Int</code>)",id:"updatedat-int",level:4},{value:"<code>favourites</code> (<code>Int</code>)",id:"favourites-int",level:4},{value:"<code>modNotes</code> (<code>String</code>)",id:"modnotes-string",level:4}],h={toc:d};function m(e){let{components:a,...t}=e;return(0,r.kt)("wrapper",(0,n.Z)({},h,t,{components:a,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"A character that features in an anime or manga"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-graphql"},"type Character {\n  id: Int!\n  name: CharacterName\n  image: CharacterImage\n  description(asHtml: Boolean): String\n  gender: String\n  dateOfBirth: FuzzyDate\n  age: String\n  bloodType: String\n  isFavourite: Boolean!\n  isFavouriteBlocked: Boolean!\n  siteUrl: String\n  media(\n    sort: [MediaSort]\n    type: MediaType\n    onList: Boolean\n    page: Int\n    perPage: Int\n  ): MediaConnection\n  updatedAt: Int\n  favourites: Int\n  modNotes: String\n}\n")),(0,r.kt)("h3",{id:"fields"},"Fields"),(0,r.kt)("h4",{id:"id-int"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"id"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"Int!")),")"),(0,r.kt)("p",null,"The id of the character"),(0,r.kt)("h4",{id:"name-charactername"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"name"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/objects/character-name"},(0,r.kt)("inlineCode",{parentName:"a"},"CharacterName")),")"),(0,r.kt)("p",null,"The names of the character"),(0,r.kt)("h4",{id:"image-characterimage"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"image"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/objects/character-image"},(0,r.kt)("inlineCode",{parentName:"a"},"CharacterImage")),")"),(0,r.kt)("p",null,"Character images"),(0,r.kt)("h4",{id:"description-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"description"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"A general description of the character"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("h5",{parentName:"li",id:"ashtml-boolean"},(0,r.kt)("a",{parentName:"h5",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"asHtml"))," (",(0,r.kt)("a",{parentName:"h5",href:"/schema/scalars/boolean"},(0,r.kt)("inlineCode",{parentName:"a"},"Boolean")),")"))),(0,r.kt)("p",null,"Return the string in pre-parsed html instead of markdown"),(0,r.kt)("h4",{id:"gender-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"gender"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"The character's gender. Usually Male, Female, or Non-binary but can be any string."),(0,r.kt)("h4",{id:"dateofbirth-fuzzydate"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"dateOfBirth"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/objects/fuzzy-date"},(0,r.kt)("inlineCode",{parentName:"a"},"FuzzyDate")),")"),(0,r.kt)("p",null,"The character's birth date"),(0,r.kt)("h4",{id:"age-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"age"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"The character's age. Note this is a string, not an int, it may contain further text and additional ages."),(0,r.kt)("h4",{id:"bloodtype-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"bloodType"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"The characters blood type"),(0,r.kt)("h4",{id:"isfavourite-boolean"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"isFavourite"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/boolean"},(0,r.kt)("inlineCode",{parentName:"a"},"Boolean!")),")"),(0,r.kt)("p",null,"If the character is marked as favourite by the currently authenticated user"),(0,r.kt)("h4",{id:"isfavouriteblocked-boolean"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"isFavouriteBlocked"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/boolean"},(0,r.kt)("inlineCode",{parentName:"a"},"Boolean!")),")"),(0,r.kt)("p",null,"If the character is blocked from being added to favourites"),(0,r.kt)("h4",{id:"siteurl-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"siteUrl"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"The url for the character page on the AniList website"),(0,r.kt)("h4",{id:"media-mediaconnection"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"media"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/objects/media-connection"},(0,r.kt)("inlineCode",{parentName:"a"},"MediaConnection")),")"),(0,r.kt)("p",null,"Media that includes the character"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("h5",{parentName:"li",id:"sort-mediasort"},(0,r.kt)("a",{parentName:"h5",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"sort"))," (",(0,r.kt)("a",{parentName:"h5",href:"/schema/enums/media-sort"},(0,r.kt)("inlineCode",{parentName:"a"},"[MediaSort]")),")")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("h5",{parentName:"li",id:"type-mediatype"},(0,r.kt)("a",{parentName:"h5",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"type"))," (",(0,r.kt)("a",{parentName:"h5",href:"/schema/enums/media-type"},(0,r.kt)("inlineCode",{parentName:"a"},"MediaType")),")")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("h5",{parentName:"li",id:"onlist-boolean"},(0,r.kt)("a",{parentName:"h5",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"onList"))," (",(0,r.kt)("a",{parentName:"h5",href:"/schema/scalars/boolean"},(0,r.kt)("inlineCode",{parentName:"a"},"Boolean")),")")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("h5",{parentName:"li",id:"page-int"},(0,r.kt)("a",{parentName:"h5",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"page"))," (",(0,r.kt)("a",{parentName:"h5",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"Int")),")"))),(0,r.kt)("p",null,"The page"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("h5",{parentName:"li",id:"perpage-int"},(0,r.kt)("a",{parentName:"h5",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"perPage"))," (",(0,r.kt)("a",{parentName:"h5",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"Int")),")"))),(0,r.kt)("p",null,"The amount of entries per page, max 25"),(0,r.kt)("h4",{id:"updatedat-int"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"updatedAt"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"Int")),")"),(0,r.kt)("h4",{id:"favourites-int"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"favourites"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"Int")),")"),(0,r.kt)("p",null,"The amount of user's who have favourited the character"),(0,r.kt)("h4",{id:"modnotes-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"modNotes"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"Notes for site moderators"))}m.isMDXComponent=!0}}]);