Skip to content

Commit

Permalink
chore: remove getAllRows types
Browse files Browse the repository at this point in the history
  • Loading branch information
pregnantboy committed May 17, 2024
1 parent 0c6f8a2 commit 35d45fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 1 addition & 7 deletions packages/backend/src/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Query {
getTable(tableId: String!): TableMetadata!
getTables: [TableMetadata!]!
# Tiles rows
getAllRows(tableId: String!): [TileRow!]!
getAllRows(tableId: String!): [JSONObject!]!
getCurrentUser: User
healthcheck: AppHealth
getPlumberStats: Stats
Expand Down Expand Up @@ -644,11 +644,6 @@ type TableMetadata {
# End Tiles types

# Start Tiles row types
type TileRow {
rowId: ID!
data: JSONObject!
}

input CreateTableRowInput {
tableId: ID!
data: JSONObject!
Expand All @@ -669,7 +664,6 @@ input DeleteTableRowsInput {
tableId: ID!
rowIds: [ID!]!
}

# End Tiles row types

type AppHealth {
Expand Down
5 changes: 1 addition & 4 deletions packages/frontend/src/graphql/queries/tiles/get-all-rows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import { gql } from '@apollo/client'

export const GET_ALL_ROWS = gql`
query GetAllRows($tableId: String!) {
getAllRows(tableId: $tableId) {
rowId
data
}
getAllRows(tableId: $tableId)
}
`

0 comments on commit 35d45fb

Please sign in to comment.