Cell = number instead of object, return flat array

This commit is contained in:
2021-02-23 18:19:57 -07:00
parent c16a68e796
commit a66a20b647
4 changed files with 53 additions and 60 deletions

View File

@ -2,9 +2,6 @@ import { gql } from "../mods";
import { generate, GenerateArguments } from "../sudoku/index";
export const typeDefs = gql`
type Cell {
value: Int
}
"""
A sudoku
"""
@ -19,7 +16,7 @@ export const typeDefs = gql`
size: Int!
"The rows of the board, from top to bottom."
cells: [[Cell!]!]!
cells: [Int!]!
}
type Query {