↓ Generating types ... [skipped]
→ Skipping type generation: no SDL defined for "BoardOrganization". To generate types, run 'yarn rw g sdl BoardOrganization'.
And so the type definition generated is broken
import type {
FindBoardOrganizationQuery,
FindBoardOrganizationQueryVariables,
} from 'types/graphql'
errors
Hi - first thing to check would be - does your SDL have the board and organization queries defined in your SDL?
I’m also sure why there’s two sets of inputs in your query - it may totally be valid syntax, just something I haven’t used or am not aware of.
What I would’ve done personally is:
Define a query in board.sdl.ts
type BoardOrg {
board: Board!
organization: Organization!
}
type Query {
boardOrg(
$orgRouteName: String!
$boardRouteName: String!
): BoardOrg @requireAuth
# ..... other queries ....
Then write the query in your cell like this:
query FindBoardOrganizationQuery(
$orgRouteName: String!
$boardRouteName: String!
) {
boardOrg(boardRouteName: $boardRouteName, orgRouteName: $orgRouteName) {
board {
id
routeName
a
b
}
organisation {
id
routeName
x
y
z
}
}
}