"use strict";(self.webpackChunkdocusaurus_2=self.webpackChunkdocusaurus_2||[]).push([[2662],{3905:function(e,t,a){a.d(t,{Zo:function(){return s},kt:function(){return u}});var n=a(7294);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function l(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)a=i[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var c=n.createContext({}),d=function(e){var t=n.useContext(c),a=t;return e&&(a="function"==typeof e?e(t):o(o({},t),e)),a},s=function(e){var t=d(e.components);return n.createElement(c.Provider,{value:t},e.children)},h={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,i=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),m=d(a),u=r,p=m["".concat(c,".").concat(u)]||m[u]||h[u]||i;return a?n.createElement(p,o(o({ref:t},s),{},{components:a})):n.createElement(p,o({ref:t},s))}));function u(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=a.length,o=new Array(i);o[0]=m;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l.mdxType="string"==typeof e?e:r,o[1]=l;for(var d=2;d<i;d++)o[d]=a[d];return n.createElement.apply(null,o)}return n.createElement.apply(null,a)}m.displayName="MDXCreateElement"},5862:function(e,t,a){a.r(t),a.d(t,{frontMatter:function(){return l},contentTitle:function(){return c},metadata:function(){return d},toc:function(){return s},default:function(){return m}});var n=a(7462),r=a(3366),i=(a(7294),a(3905)),o=["components"],l={id:"media-edge",title:"MediaEdge"},c=void 0,d={unversionedId:"schema/objects/media-edge",id:"schema/objects/media-edge",isDocsHomePage:!1,title:"MediaEdge",description:"Media connection edge",source:"@site/docs/schema/objects/media-edge.mdx",sourceDirName:"schema/objects",slug:"/schema/objects/media-edge",permalink:"/graphql-markdown/schema/objects/media-edge",tags:[],version:"current",frontMatter:{id:"media-edge",title:"MediaEdge"},sidebar:"basic",previous:{title:"MediaDeletionNotification",permalink:"/graphql-markdown/schema/objects/media-deletion-notification"},next:{title:"MediaExternalLink",permalink:"/graphql-markdown/schema/objects/media-external-link"}},s=[{value:"Fields",id:"fields",children:[{value:"<code>node</code> (Media)",id:"node-media",children:[],level:4},{value:"<code>id</code> (Int)",id:"id-int",children:[],level:4},{value:"<code>relationType</code> (MediaRelation)",id:"relationtype-mediarelation",children:[],level:4},{value:"<code>isMainStudio</code> (Boolean)",id:"ismainstudio-boolean",children:[],level:4},{value:"<code>characters</code> (Character)",id:"characters-character",children:[],level:4},{value:"<code>characterRole</code> (CharacterRole)",id:"characterrole-characterrole",children:[],level:4},{value:"<code>characterName</code> (String)",id:"charactername-string",children:[],level:4},{value:"<code>roleNotes</code> (String)",id:"rolenotes-string",children:[],level:4},{value:"<code>dubGroup</code> (String)",id:"dubgroup-string",children:[],level:4},{value:"<code>staffRole</code> (String)",id:"staffrole-string",children:[],level:4},{value:"<code>voiceActors</code> (Staff)",id:"voiceactors-staff",children:[],level:4},{value:"<code>voiceActorRoles</code> (StaffRoleType)",id:"voiceactorroles-staffroletype",children:[],level:4},{value:"<code>favouriteOrder</code> (Int)",id:"favouriteorder-int",children:[],level:4}],level:3}],h={toc:s};function m(e){var t=e.components,a=(0,r.Z)(e,o);return(0,i.kt)("wrapper",(0,n.Z)({},h,a,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Media connection edge"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-graphql"},"type MediaEdge {\n  node: Media\n  id: Int\n  relationType(version: Int): MediaRelation\n  isMainStudio: Boolean!\n  characters: [Character]\n  characterRole: CharacterRole\n  characterName: String\n  roleNotes: String\n  dubGroup: String\n  staffRole: String\n  voiceActors(language: StaffLanguage, sort: [StaffSort]): [Staff]\n  voiceActorRoles(language: StaffLanguage, sort: [StaffSort]): [StaffRoleType]\n  favouriteOrder: Int\n}\n")),(0,i.kt)("h3",{id:"fields"},"Fields"),(0,i.kt)("h4",{id:"node-media"},(0,i.kt)("inlineCode",{parentName:"h4"},"node")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/objects/media"},(0,i.kt)("inlineCode",{parentName:"a"},"Media")),")"),(0,i.kt)("h4",{id:"id-int"},(0,i.kt)("inlineCode",{parentName:"h4"},"id")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,i.kt)("inlineCode",{parentName:"a"},"Int")),")"),(0,i.kt)("p",null,"The id of the connection"),(0,i.kt)("h4",{id:"relationtype-mediarelation"},(0,i.kt)("inlineCode",{parentName:"h4"},"relationType")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/enums/media-relation"},(0,i.kt)("inlineCode",{parentName:"a"},"MediaRelation")),")"),(0,i.kt)("p",null,"The type of relation to the parent model"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("h5",{parentName:"li",id:"version-int"},(0,i.kt)("inlineCode",{parentName:"h5"},"version")," (",(0,i.kt)("a",{parentName:"h5",href:"/schema/scalars/int"},(0,i.kt)("inlineCode",{parentName:"a"},"Int")),")"))),(0,i.kt)("p",null,"Provide 2 to use new version 2 of relation enum"),(0,i.kt)("h4",{id:"ismainstudio-boolean"},(0,i.kt)("inlineCode",{parentName:"h4"},"isMainStudio")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/scalars/boolean"},(0,i.kt)("inlineCode",{parentName:"a"},"Boolean")),")"),(0,i.kt)("p",null,"If the studio is the main animation studio of the media (For Studio-",">","MediaConnection field only)"),(0,i.kt)("h4",{id:"characters-character"},(0,i.kt)("inlineCode",{parentName:"h4"},"characters")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/objects/character"},(0,i.kt)("inlineCode",{parentName:"a"},"Character")),")"),(0,i.kt)("p",null,"The characters in the media voiced by the parent actor"),(0,i.kt)("h4",{id:"characterrole-characterrole"},(0,i.kt)("inlineCode",{parentName:"h4"},"characterRole")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/enums/character-role"},(0,i.kt)("inlineCode",{parentName:"a"},"CharacterRole")),")"),(0,i.kt)("p",null,"The characters role in the media"),(0,i.kt)("h4",{id:"charactername-string"},(0,i.kt)("inlineCode",{parentName:"h4"},"characterName")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,i.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,i.kt)("p",null,"Media specific character name"),(0,i.kt)("h4",{id:"rolenotes-string"},(0,i.kt)("inlineCode",{parentName:"h4"},"roleNotes")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,i.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,i.kt)("p",null,"Notes regarding the VA's role for the character"),(0,i.kt)("h4",{id:"dubgroup-string"},(0,i.kt)("inlineCode",{parentName:"h4"},"dubGroup")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,i.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,i.kt)("p",null,"Used for grouping roles where multiple dubs exist for the same language. Either dubbing company name or language variant."),(0,i.kt)("h4",{id:"staffrole-string"},(0,i.kt)("inlineCode",{parentName:"h4"},"staffRole")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,i.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,i.kt)("p",null,"The role of the staff member in the production of the media"),(0,i.kt)("h4",{id:"voiceactors-staff"},(0,i.kt)("inlineCode",{parentName:"h4"},"voiceActors")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/objects/staff"},(0,i.kt)("inlineCode",{parentName:"a"},"Staff")),")"),(0,i.kt)("p",null,"The voice actors of the character"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("h5",{parentName:"li",id:"language-stafflanguage"},(0,i.kt)("inlineCode",{parentName:"h5"},"language")," (",(0,i.kt)("a",{parentName:"h5",href:"/schema/enums/staff-language"},(0,i.kt)("inlineCode",{parentName:"a"},"StaffLanguage")),")")),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("h5",{parentName:"li",id:"sort-staffsort"},(0,i.kt)("inlineCode",{parentName:"h5"},"sort")," (",(0,i.kt)("a",{parentName:"h5",href:"/schema/enums/staff-sort"},(0,i.kt)("inlineCode",{parentName:"a"},"StaffSort")),")"))),(0,i.kt)("h4",{id:"voiceactorroles-staffroletype"},(0,i.kt)("inlineCode",{parentName:"h4"},"voiceActorRoles")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/objects/staff-role-type"},(0,i.kt)("inlineCode",{parentName:"a"},"StaffRoleType")),")"),(0,i.kt)("p",null,"The voice actors of the character with role date"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("h5",{parentName:"li",id:"language-stafflanguage-1"},(0,i.kt)("inlineCode",{parentName:"h5"},"language")," (",(0,i.kt)("a",{parentName:"h5",href:"/schema/enums/staff-language"},(0,i.kt)("inlineCode",{parentName:"a"},"StaffLanguage")),")")),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("h5",{parentName:"li",id:"sort-staffsort-1"},(0,i.kt)("inlineCode",{parentName:"h5"},"sort")," (",(0,i.kt)("a",{parentName:"h5",href:"/schema/enums/staff-sort"},(0,i.kt)("inlineCode",{parentName:"a"},"StaffSort")),")"))),(0,i.kt)("h4",{id:"favouriteorder-int"},(0,i.kt)("inlineCode",{parentName:"h4"},"favouriteOrder")," (",(0,i.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,i.kt)("inlineCode",{parentName:"a"},"Int")),")"),(0,i.kt)("p",null,"The order the media should be displayed from the users favourites"))}m.isMDXComponent=!0}}]);