pnpm i -D graphql
pnpm i -D @graphql-codegen/cli
pnpm i -D @urql/svelte
pnpm i -D @types/node
pnpm i -D @graphql-codegen/typescript-operations
pnpm i -D @parcel/watcher
pnpm graphql-codegen init
pnpm i -D @urql/svelte
import type { CodegenConfig } from '@graphql-codegen/cli'
export const config: CodegenConfig = {
overwrite: true,
schema: 'http://0.0.0.0:5100/graphql',
documents: 'src/lib/graphql/operations/**/*.ts',
generates: {
'src/lib/graphql/generated/graphql.ts': {
plugins: [
'typescript',
'typescript-operations',
]
}
}
}
export default config
Add script
"codegen": "graphql-codegen --watch --config codegen.ts",
overwrite: true
schema: "http://localhost:5100/graphql/"
documents: "src/lib/graphql/*.graphql"
generates:
src/lib/generated/graphql.ts:
plugins:
- "typescript"
- "typescript-operations"
Add script
"codegen": "graphql-codegen --config codegen.yml"
overwrite: true
schema:
- "https://corrffzfsdldzdebeugi.supabase.co/graphql/v1":
headers:
apiKey: "api key here"
documents: "src/lib/graphql/operations/**/*.graphql"
generates:
src/lib/graphql/types.ts:
plugins:
- "typescript"
- "typescript-operations"
CMS-driven IntelliSense in your code editor
CMS-driven IntelliSense in your code editor
namespace App; public static class RawLotParts { public static string BPA2A2124012001 = @" KU5A-286B86-BA LBL LNR P/U BOX 6 0 MB3C-2263-BH TUB ASY FRT WHL BRK 6 0 N1WB-17682-UED5JNV MIR ASY RV O/S 6 0 MB3A-12A692-DC BRKT ASY ENG ELETR CONTR PROCS 6 0 W716592-S300 RIVET PUSH PIN 7.5X7.2 PLA 12 0 W717491-S450B BOLT&WSHR M6X25 HX PIL PTC FL 8 12 0
Feb 13, 2024setup solution
Aug 10, 2023Remove all list runtimes dotnet --list-runtimes nuke dotnet sudo rm -rf /usr/local/share/dotnet Remove version Replace version with the version of dotnet you want to remove
Feb 15, 2023Create and populate tables select * from pg_catalog.pg_tables where schemaname = 'public'; drop table menu_item; drop table menu_category; drop table pricing; drop table review; create table
Feb 3, 2023or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up