text: "use strict";(self.webpackChunkdocusaurus_2=self.webpackChunkdocusaurus_2||[]).push([[7162],{3905:function(e,t,a){a.d(t,{Zo:function(){return u},kt:function(){return p}});var n=a(7294);function i(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(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 d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){i(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function s(e,t){if(null==e)return{};var a,n,i=function(e,t){if(null==e)return{};var a,n,i={},r=Object.keys(e);for(n=0;n<r.length;n++)a=r[n],t.indexOf(a)>=0||(i[a]=e[a]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)a=r[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var l=n.createContext({}),o=function(e){var t=n.useContext(l),a=t;return e&&(a="function"==typeof e?e(t):d(d({},t),e)),a},u=function(e){var t=o(e.components);return n.createElement(l.Provider,{value:t},e.children)},c={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,i=e.mdxType,r=e.originalType,l=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),m=o(a),p=i,h=m["".concat(l,".").concat(p)]||m[p]||c[p]||r;return a?n.createElement(h,d(d({ref:t},u),{},{components:a})):n.createElement(h,d({ref:t},u))}));function p(e,t){var a=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var r=a.length,d=new Array(r);d[0]=m;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s.mdxType="string"==typeof e?e:i,d[1]=s;for(var o=2;o<r;o++)d[o]=a[o];return n.createElement.apply(null,d)}return n.createElement.apply(null,a)}m.displayName="MDXCreateElement"},2298:function(e,t,a){a.r(t),a.d(t,{assets:function(){return u},contentTitle:function(){return l},default:function(){return p},frontMatter:function(){return s},metadata:function(){return o},toc:function(){return c}});var n=a(7462),i=a(3366),r=(a(7294),a(3905)),d=["components"],s={id:"media-list",title:"MediaList",hide_table_of_contents:!0,pagination_next:null,pagination_prev:null},l=void 0,o={unversionedId:"schema/queries/media-list",id:"schema/queries/media-list",title:"MediaList",description:"Media list query",source:"@site/docs/schema/queries/media-list.mdx",sourceDirName:"schema/queries",slug:"/schema/queries/media-list",permalink:"/schema/queries/media-list",draft:!1,tags:[],version:"current",frontMatter:{id:"media-list",title:"MediaList",hide_table_of_contents:!0,pagination_next:null,pagination_prev:null},sidebar:"basic"},u={},c=[{value:"Arguments",id:"arguments",level:3},{value:"<code>id</code> (<code>Int</code>)",id:"id-int",level:4},{value:"<code>userId</code> (<code>Int</code>)",id:"userid-int",level:4},{value:"<code>userName</code> (<code>String</code>)",id:"username-string",level:4},{value:"<code>type</code> (<code>MediaType</code>)",id:"type-mediatype",level:4},{value:"<code>status</code> (<code>MediaListStatus</code>)",id:"status-medialiststatus",level:4},{value:"<code>mediaId</code> (<code>Int</code>)",id:"mediaid-int",level:4},{value:"<code>isFollowing</code> (<code>Boolean</code>)",id:"isfollowing-boolean",level:4},{value:"<code>notes</code> (<code>String</code>)",id:"notes-string",level:4},{value:"<code>startedAt</code> (<code>FuzzyDateInt</code>)",id:"startedat-fuzzydateint",level:4},{value:"<code>completedAt</code> (<code>FuzzyDateInt</code>)",id:"completedat-fuzzydateint",level:4},{value:"<code>compareWithAuthList</code> (<code>Boolean</code>)",id:"comparewithauthlist-boolean",level:4},{value:"<code>userId_in</code> (<code>[Int]</code>)",id:"userid_in-int",level:4},{value:"<code>status_in</code> (<code>[MediaListStatus]</code>)",id:"status_in-medialiststatus",level:4},{value:"<code>status_not_in</code> (<code>[MediaListStatus]</code>)",id:"status_not_in-medialiststatus",level:4},{value:"<code>status_not</code> (<code>MediaListStatus</code>)",id:"status_not-medialiststatus",level:4},{value:"<code>mediaId_in</code> (<code>[Int]</code>)",id:"mediaid_in-int",level:4},{value:"<code>mediaId_not_in</code> (<code>[Int]</code>)",id:"mediaid_not_in-int",level:4},{value:"<code>notes_like</code> (<code>String</code>)",id:"notes_like-string",level:4},{value:"<code>startedAt_greater</code> (<code>FuzzyDateInt</code>)",id:"startedat_greater-fuzzydateint",level:4},{value:"<code>startedAt_lesser</code> (<code>FuzzyDateInt</code>)",id:"startedat_lesser-fuzzydateint",level:4},{value:"<code>startedAt_like</code> (<code>String</code>)",id:"startedat_like-string",level:4},{value:"<code>completedAt_greater</code> (<code>FuzzyDateInt</code>)",id:"completedat_greater-fuzzydateint",level:4},{value:"<code>completedAt_lesser</code> (<code>FuzzyDateInt</code>)",id:"completedat_lesser-fuzzydateint",level:4},{value:"<code>completedAt_like</code> (<code>String</code>)",id:"completedat_like-string",level:4},{value:"<code>sort</code> (<code>[MediaListSort]</code>)",id:"sort-medialistsort",level:4},{value:"Type",id:"type",level:3},{value:"<code>MediaList</code>",id:"medialist",level:4}],m={toc:c};function p(e){var t=e.components,a=(0,i.Z)(e,d);return(0,r.kt)("wrapper",(0,n.Z)({},m,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"Media list query"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-graphql"},"MediaList(\n  id: Int\n  userId: Int\n  userName: String\n  type: MediaType\n  status: MediaListStatus\n  mediaId: Int\n  isFollowing: Boolean\n  notes: String\n  startedAt: FuzzyDateInt\n  completedAt: FuzzyDateInt\n  compareWithAuthList: Boolean\n  userId_in: [Int]\n  status_in: [MediaListStatus]\n  status_not_in: [MediaListStatus]\n  status_not: MediaListStatus\n  mediaId_in: [Int]\n  mediaId_not_in: [Int]\n  notes_like: String\n  startedAt_greater: FuzzyDateInt\n  startedAt_lesser: FuzzyDateInt\n  startedAt_like: String\n  completedAt_greater: FuzzyDateInt\n  completedAt_lesser: FuzzyDateInt\n  completedAt_like: String\n  sort: [MediaListSort]\n): MediaList\n")),(0,r.kt)("h3",{id:"arguments"},"Arguments"),(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,"Filter by a list entry's id"),(0,r.kt)("h4",{id:"userid-int"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"userId"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"Int")),")"),(0,r.kt)("p",null,"Filter by a user's id"),(0,r.kt)("h4",{id:"username-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"userName"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"Filter by a user's name"),(0,r.kt)("h4",{id:"type-mediatype"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"type"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/enums/media-type"},(0,r.kt)("inlineCode",{parentName:"a"},"MediaType")),")"),(0,r.kt)("p",null,"Filter by the list entries media type"),(0,r.kt)("h4",{id:"status-medialiststatus"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"status"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/enums/media-list-status"},(0,r.kt)("inlineCode",{parentName:"a"},"MediaListStatus")),")"),(0,r.kt)("p",null,"Filter by the watching/reading status"),(0,r.kt)("h4",{id:"mediaid-int"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"mediaId"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"Int")),")"),(0,r.kt)("p",null,"Filter by the media id of the list entry"),(0,r.kt)("h4",{id:"isfollowing-boolean"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"isFollowing"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/boolean"},(0,r.kt)("inlineCode",{parentName:"a"},"Boolean")),")"),(0,r.kt)("p",null,"Filter list entries to users who are being followed by the authenticated user"),(0,r.kt)("h4",{id:"notes-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"notes"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"Filter by note words and #tags"),(0,r.kt)("h4",{id:"startedat-fuzzydateint"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"startedAt"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/fuzzy-date-int"},(0,r.kt)("inlineCode",{parentName:"a"},"FuzzyDateInt")),")"),(0,r.kt)("p",null,"Filter by the date the user started the media"),(0,r.kt)("h4",{id:"completedat-fuzzydateint"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"completedAt"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/fuzzy-date-int"},(0,r.kt)("inlineCode",{parentName:"a"},"FuzzyDateInt")),")"),(0,r.kt)("p",null,"Filter by the date the user completed the media"),(0,r.kt)("h4",{id:"comparewithauthlist-boolean"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"compareWithAuthList"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/boolean"},(0,r.kt)("inlineCode",{parentName:"a"},"Boolean")),")"),(0,r.kt)("p",null,"Limit to only entries also on the auth user's list. Requires user id or name arguments."),(0,r.kt)("h4",{id:"userid_in-int"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"userId_in"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"[Int]")),")"),(0,r.kt)("p",null,"Filter by a user's id"),(0,r.kt)("h4",{id:"status_in-medialiststatus"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"status_in"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/enums/media-list-status"},(0,r.kt)("inlineCode",{parentName:"a"},"[MediaListStatus]")),")"),(0,r.kt)("p",null,"Filter by the watching/reading status"),(0,r.kt)("h4",{id:"status_not_in-medialiststatus"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"status_not_in"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/enums/media-list-status"},(0,r.kt)("inlineCode",{parentName:"a"},"[MediaListStatus]")),")"),(0,r.kt)("p",null,"Filter by the watching/reading status"),(0,r.kt)("h4",{id:"status_not-medialiststatus"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"status_not"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/enums/media-list-status"},(0,r.kt)("inlineCode",{parentName:"a"},"MediaListStatus")),")"),(0,r.kt)("p",null,"Filter by the watching/reading status"),(0,r.kt)("h4",{id:"mediaid_in-int"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"mediaId_in"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"[Int]")),")"),(0,r.kt)("p",null,"Filter by the media id of the list entry"),(0,r.kt)("h4",{id:"mediaid_not_in-int"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"mediaId_not_in"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/int"},(0,r.kt)("inlineCode",{parentName:"a"},"[Int]")),")"),(0,r.kt)("p",null,"Filter by the media id of the list entry"),(0,r.kt)("h4",{id:"notes_like-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"notes_like"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"Filter by note words and #tags"),(0,r.kt)("h4",{id:"startedat_greater-fuzzydateint"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"startedAt_greater"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/fuzzy-date-int"},(0,r.kt)("inlineCode",{parentName:"a"},"FuzzyDateInt")),")"),(0,r.kt)("p",null,"Filter by the date the user started the media"),(0,r.kt)("h4",{id:"startedat_lesser-fuzzydateint"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"startedAt_lesser"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/fuzzy-date-int"},(0,r.kt)("inlineCode",{parentName:"a"},"FuzzyDateInt")),")"),(0,r.kt)("p",null,"Filter by the date the user started the media"),(0,r.kt)("h4",{id:"startedat_like-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"startedAt_like"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"Filter by the date the user started the media"),(0,r.kt)("h4",{id:"completedat_greater-fuzzydateint"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"completedAt_greater"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/fuzzy-date-int"},(0,r.kt)("inlineCode",{parentName:"a"},"FuzzyDateInt")),")"),(0,r.kt)("p",null,"Filter by the date the user completed the media"),(0,r.kt)("h4",{id:"completedat_lesser-fuzzydateint"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"completedAt_lesser"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/fuzzy-date-int"},(0,r.kt)("inlineCode",{parentName:"a"},"FuzzyDateInt")),")"),(0,r.kt)("p",null,"Filter by the date the user completed the media"),(0,r.kt)("h4",{id:"completedat_like-string"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"completedAt_like"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/scalars/string"},(0,r.kt)("inlineCode",{parentName:"a"},"String")),")"),(0,r.kt)("p",null,"Filter by the date the user completed the media"),(0,r.kt)("h4",{id:"sort-medialistsort"},(0,r.kt)("a",{parentName:"h4",href:"#"},(0,r.kt)("inlineCode",{parentName:"a"},"sort"))," (",(0,r.kt)("a",{parentName:"h4",href:"/schema/enums/media-list-sort"},(0,r.kt)("inlineCode",{parentName:"a"},"[MediaListSort]")),")"),(0,r.kt)("p",null,"The order the results will be returned in"),(0,r.kt)("h3",{id:"type"},"Type"),(0,r.kt)("h4",{id:"medialist"},(0,r.kt)("a",{parentName:"h4",href:"/schema/objects/media-list"},(0,r.kt)("inlineCode",{parentName:"a"},"MediaList"))),(0,r.kt)("p",null,"List of anime or manga"))}p.isMDXComponent=!0}}]);