# .graphql:1:error:Unknown type \\"Int\\"."\]

**URL:** <https://community.apollographql.com/t/graphqlerror-unknown-type-int/4755>\
**Category:** Client SDKs\
**Tags:** client, mobile, ios\
**Created:** [October 17, 2022, 8:04am UTC](https://community.apollographql.com/t/graphqlerror-unknown-type-int/4755 "2022-10-17T08:04:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ebubekir](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/ebubekir/32/3235_2.png) [@Ebubekir](https://community.apollographql.com/u/Ebubekir)\
**Post date:** [October 17, 2022, 8:04am UTC](https://community.apollographql.com/t/graphqlerror-unknown-type-int/4755/1 "2022-10-17T08:04:30Z")

</div>

Hello, I tried to Apollo 1.0.1 for my project trying with the both options spm and manual. I encounter the same problem. Here is the my apollo-codegen-config.json

```auto
{
  "schemaName" : "schema.json",
  "schemaDownloadConfiguration": {
    "downloadMethod": {
        "introspection": {
            "endpointURL": "https://swapi-graphql.netlify.app/.netlify/functions/index",
            "httpMethod": {
                "POST": {}
            },
            "includeDeprecatedInputValues": false,
            "outputFormat": "SDL"
        }
    },
    "downloadTimeout": 60,
    "headers": [],
    "outputPath": "./schema.json"
},
  "input" : {
    "operationSearchPaths" : [
      "./*.graphql"
    ],
    "schemaSearchPaths" : [
      "./*.graphqls"
    ]
  },
  "output" : {
    "testMocks" : {
      "none" : {
      }
    },
    "schemaTypes" : {
      "path" : "./MySchemaName",
      "moduleType" : {
        "swiftPackageManager" : {
        }
      }
    },
    "operations" : {
      "relative" : {
      }
    }
  }
}

```

and here is the my graphql query

```auto
query AllFilms($first: Int) {
  allFilms(first: $first) {
    films {
      title
    }
  }
}

```

I counter the this problem: **.graphql:1:error:Unknown type "Int"."]**

---

<div class="post-metadata">

**Author:** ![AnthonyMDev](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/anthonymdev/32/5972_2.png) [@AnthonyMDev](https://community.apollographql.com/u/AnthonyMDev)\
**Post date:** [October 18, 2022, 6:33pm UTC](https://community.apollographql.com/t/graphqlerror-unknown-type-int/4755/2 "2022-10-18T18:33:14Z")

</div>

It’s likely that your schema file is not being picked up by the code gen engine. (We are working on providing better error messages for this case soon!)

Make sure that the `schemaSearchPaths` is set correctly in your config to pick up your schema. If you are using a json schema, you will want to add the schema with the correct extension (`.json` instead of `.graphqls`) to your config.

---

<div class="post-metadata">

**Author:** ![Ebubekir](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/ebubekir/32/3235_2.png) [@Ebubekir](https://community.apollographql.com/u/Ebubekir)\
**Post date:** [October 18, 2022, 7:23pm UTC](https://community.apollographql.com/t/graphqlerror-unknown-type-int/4755/3 "2022-10-18T19:23:21Z")

</div>

Thanks for your response, i solved the problem using the SPM. Now i encounter the different problem. I generated the query but the new .graphql.swift file gives me errors.

- Type ‘Objects’ has no member ‘RepositoryConnection’
- Module ‘API’ has no member named ‘URI’
- No type named ‘URI’ in module ‘API’

 ![Screen Shot 2022-10-18 at 22.22.57](https://us1.discourse-cdn.com/flex019/uploads/apollographql/original/2X/5/5c676d11e2a9a5b8643892b105fc534bf3eea681.png)

---

<div class="post-metadata">

**Author:** ![calvincestari](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/calvincestari/32/339_2.png) [@calvincestari](https://community.apollographql.com/u/calvincestari)\
**Post date:** [October 24, 2022, 9:36pm UTC](https://community.apollographql.com/t/graphqlerror-unknown-type-int/4755/4 "2022-10-24T21:36:43Z")

</div>

@Ebubekir have you checked if there is actually a `URI` type in your project? It looks like it may be a custom scalar.

---

<div class="post-metadata">

**Author:** ![Ebubekir](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/ebubekir/32/3235_2.png) [@Ebubekir](https://community.apollographql.com/u/Ebubekir)\
**Post date:** [November 25, 2022, 8:59am UTC](https://community.apollographql.com/t/graphqlerror-unknown-type-int/4755/5 "2022-11-25T08:59:11Z")

</div>

Actually URI type comes from the generated API Query. It does not exist in the codes
