// nest within any conditional, such as onload fetch('/graphql', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOjEsImNvcnMiOlsiaHR0cHM6Ly93d3cudG9kYXlzY2xhc3Nyb29tLmNvbSJdLCJlYXQiOjE3MTY5NzgxMDEsImlhdCI6MTcxNjgwNTMwMSwiaXNzIjoiQkMiLCJzaWQiOjMxODQ2LCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.reKNltNV6L0EzDozU5ylP5DlOz2-2f7zShzo7vfyj_tjIoL3IQ7DKesPgKsQKas1GqnRHy8ESQxp5XAoHlDC-g' }, body: JSON.stringify({ query: "{ site { category(entityId: $categoryId) { metafields(namespace: 'my-namespace', keys: ['my-key']) { edges { node { value } } } } } }" }) //graphql query string }) .then(data => data.json()) .then(data => console.log(data)) .catch(error => console.error(error)); Popular Categories - Shop by Department - Cribs and Nursery Furniture - Cribs - Convertible - Today's Classroom

Convertible cribs are the perfect solution for your long term needs. These cribs are designed to grow with your children, converting from a crib to a day bed to a full-size bed.