I have the schema:
type Project {
id: ID
name: String!
url: String
icons: Icons @custom(http: {
url: "http://favicongrabber.com/api/grab/$url"
method: GET
})
description: String
}
type Icons @remote {
domain: String
icons: [Icon]
error: String
}
type Icon @remote {
src: String!
type: String
sizes: String
}
However this is not able to be deployed due to the following error:
resolving updateGQLSchema failed because input:29: Type Project; Field icons; url path inside @custom directive uses a field url that can be null.
I can’t make the url field a mandatory field because not every project will have a url, but I do want to use the custom with that field. Any resolution to this besides making url a mandatory field?