Skip to content

Instantly share code, notes, and snippets.

import { SelectField } from '@redwoodjs/forms'
import LoadingSpinner from 'src/components/LoadingSpinner/LoadingSpinner'
export const QUERY = gql`
query CITIES(
$page: Int
$limit: Int
$filter: [CitiesFilterInput]
$orderBy: [CitiesOrderByInput]
import {
db,
foreignKeyReplacement,
formatFilter,
formatOrderBy,
} from 'src/lib/db'
import { requireAuth } from 'src/lib/auth'
const filterFieldMap = {
KEYWORD: {
export const QUERY = gql`
query USERS {
users {
id
name
}
}
`
export const Loading = () => <div>Loading users...</div>
export const Empty = () => <div>No users yet!</div>
# Create a cell for Users
$ yarn rw generate cell Users
# Create a layout named Admin
$ yarn rw generate layout Admin
# Create an About page and set the URL to /about
$ yarn rw generate page About /about
# Read the DB schema and create the SDL file for the User table