fileCreate doesn't exist in new API version?

Shopify Partner
14 2 4

Hi! I was using the documented example fileCreate code to upload files to the Shopify file page. However, graphQL is returning these errors:


Error: GraphQL error: FileCreateInput isn't a defined input type (on $files)
GraphQL error: Field 'fileCreate' doesn't exist on type 'Mutation'
GraphQL error: Variable $files is declared by fileCreate but not used


 I can confirm my calls are in the most recent version (2021-07)

This is my ApolloClient code from the backend using the default CLI code. It should be using the 2021-07 version:


import ApolloClient from "apollo-boost";

export const createClient = (shop, accessToken) => {
  return new ApolloClient({
    uri: `https://${shop}/admin/api/2021-07/graphql.json`,
    request: (operation) => {
        headers: {
          "X-Shopify-Access-Token": accessToken,
          "User-Agent": `shopify-app-node ${process.env.npm_package_version} | Shopify App CLI`,


I'm completely confused why it isn't working. Any help would be greatly appreciated.

Professional Front-End Developer | Available for work | Contact at:
Reply 1 (1)
Shopify Staff
Shopify Staff
1098 146 219

Hey @SaphiraDev 

That's strange. I just tested on 2021-07 with success. Are you still experiencing the issue?

Scott | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog