PageSourceSearch

https://docs.dnd5eapi.co/assets/js/5043549d.dfc204dd.js

js dnd5eapi.co collected 2026-10-03 23:12:26 UTC 2,388 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkdocs||=[]).push([[1899],{28961(e,r,t){t.r(r),t.d(r,{assets:()=>l,contentTitle:()=>a,default:()=>p,frontMatter:()=>o,metadata:()=>n,toc:()=>h});const n=JSON.parse('{"id":"graphql","title":"GraphQL","description":"This API supports GraphQL. The GraphQL URL for this API","source":"@site/docs/graphql.md","sourceDirName":".","slug":"/graphql","permalink":"/2024/graphql","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"sidebar_position":3}}');var s=t(86195),i=t(94758);const o={sidebar_position:3},a="GraphQL",l={},h=[{value:"Example Queries",id:"example-queries",level:2},{value:"Get a list of ability scores",id:"get-a-list-of-ability-scores",level:3}];function c(e){const r={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.header,{children:(0,s.jsx)(r.h1,{id:"graphql",children:"GraphQL"})}),"\n",(0,s.jsxs)(r.p,{children:["This API supports ",(0,s.jsx)(r.a,{href:"https://graphql.org/",children:"GraphQL"}),". The GraphQL URL for this API\nis ",(0,s.jsx)(r.code,{children:"https://www.dnd5eapi.co/graphql/2024"}),". Most of your questions regarding the GraphQL schema can be answered by querying the endpoint with the Apollo sandbox explorer."]}),"\n",(0,s.jsx)(r.h2,{id:"example-queries",children:"Example Queries"}),"\n",(0,s.jsx)(r.p,{children:"Here is a list of example queries you can run in the sandbox explorer to get started trying out the GraphQL functionality of the API."}),"\n",(0,s.jsx)(r.h3,{id:"get-a-list-of-ability-scores",children:"Get a list of ability scores"}),"\n",(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-graphql",children:"query {\n  abilityScores {\n    name\n    description\n    skills {\n      name\n    }\n  }\n}\n"})})]})}function p(e={}){const{wrapper:r}={...(0,i.R)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},94758(e,r,t){t.d(r,{R:()=>o,x:()=>a});var n=t(98067);const s={},i=n.createContext(s);function o(e){const r=n.useContext(i);return n.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function a(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(i.Provider,{value:r},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.