File tree Expand file tree Collapse file tree 8 files changed +35
-35
lines changed
Expand file tree Collapse file tree 8 files changed +35
-35
lines changed Original file line number Diff line number Diff line change 1+ import { Id } from '@graphprotocol/grc-20' ;
2+ import type { Mapping } from '@graphprotocol/hypergraph-react' ;
3+
4+ export const mapping : Mapping = {
5+ NewsStory : {
6+ typeIds : [ Id . Id ( 'VKPGYGnFuaoAASiAukCVCX' ) ] ,
7+ properties : {
8+ name : Id . Id ( 'LuBWqZAu6pz54eiJS5mLv8' ) ,
9+ publishDate : Id . Id ( 'KPNjGaLx5dKofVhT6Dfw22' ) ,
10+ description : Id . Id ( 'LA1DqP5v6QAdsgLPXGF3YA' ) ,
11+ } ,
12+ } ,
13+ Todo2 : {
14+ typeIds : [ Id . Id ( '4ewpH1mPW9f2tLhaHdKKyn' ) ] ,
15+ properties : {
16+ name : Id . Id ( 'LuBWqZAu6pz54eiJS5mLv8' ) ,
17+ checked : Id . Id ( '7zyFtwuuf9evFNZqcLSytU' ) ,
18+ } ,
19+ relations : {
20+ assignees : Id . Id ( 'GeLe54zpz1MiMWAF8LFCCt' ) ,
21+ } ,
22+ } ,
23+ User : {
24+ typeIds : [ Id . Id ( 'KYCunro75we8KbjpsDKbm7' ) ] ,
25+ properties : {
26+ name : Id . Id ( 'LuBWqZAu6pz54eiJS5mLv8' ) ,
27+ } ,
28+ } ,
29+ } ;
Original file line number Diff line number Diff line change 11import { Playground } from '@/components/playground' ;
2+ import { mapping } from '@/mapping.js' ;
23import { HypergraphSpaceProvider } from '@graphprotocol/hypergraph-react' ;
34import { createLazyFileRoute } from '@tanstack/react-router' ;
4- import { mapping } from '../schema' ;
55
66export const Route = createLazyFileRoute ( '/playground' ) ( {
77 component : RouteComponent ,
Original file line number Diff line number Diff line change 11import { SpaceChat } from '@/components/SpaceChat' ;
2- import { mapping } from '@/schema ' ;
2+ import { mapping } from '@/mapping.js ' ;
33import { store } from '@graphprotocol/hypergraph' ;
44import { HypergraphSpaceProvider , useHypergraphApp } from '@graphprotocol/hypergraph-react' ;
55import { createFileRoute } from '@tanstack/react-router' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { TodosReadOnlyFilter } from '@/components/todos-read-only-filter';
55import { Button } from '@/components/ui/button' ;
66import { Users } from '@/components/users' ;
77import { availableAccounts } from '@/lib/availableAccounts' ;
8- import { mapping } from '@/schema ' ;
8+ import { mapping } from '@/mapping.js ' ;
99import { store } from '@graphprotocol/hypergraph' ;
1010import { HypergraphSpaceProvider , useHypergraphApp } from '@graphprotocol/hypergraph-react' ;
1111import { createFileRoute } from '@tanstack/react-router' ;
Original file line number Diff line number Diff line change 11import { TodosPublicGeo } from '@/components/todo/todos-public-geo' ;
2- import { mapping } from '@/schema ' ;
2+ import { mapping } from '@/mapping.js ' ;
33import { store } from '@graphprotocol/hypergraph' ;
44import { HypergraphSpaceProvider , useHypergraphApp } from '@graphprotocol/hypergraph-react' ;
55import { createFileRoute } from '@tanstack/react-router' ;
Original file line number Diff line number Diff line change 11import { CreatePropertiesAndTypes } from '@/components/create-properties-and-types' ;
22import { Todos2 } from '@/components/todos2' ;
3- import { mapping } from '@/schema ' ;
3+ import { mapping } from '@/mapping.js ' ;
44import { store } from '@graphprotocol/hypergraph' ;
55import { HypergraphSpaceProvider , useHypergraphApp } from '@graphprotocol/hypergraph-react' ;
66import { createFileRoute } from '@tanstack/react-router' ;
Original file line number Diff line number Diff line change 11import { UsersMerged } from '@/components/users/users-merged' ;
22import { UsersPublicGeo } from '@/components/users/users-public-geo' ;
3- import { mapping } from '@/schema ' ;
3+ import { mapping } from '@/mapping.js ' ;
44import { store } from '@graphprotocol/hypergraph' ;
55import { HypergraphSpaceProvider , useHypergraphApp } from '@graphprotocol/hypergraph-react' ;
66import { createFileRoute } from '@tanstack/react-router' ;
Original file line number Diff line number Diff line change 1- import { Id } from '@graphprotocol/grc-20' ;
21import { Entity } from '@graphprotocol/hypergraph' ;
3- import type { Mapping } from '@graphprotocol/hypergraph-react' ;
42
53export class User extends Entity . Class < User > ( 'User' ) ( {
64 name : Entity . Text ,
@@ -23,30 +21,3 @@ export class NewsStory extends Entity.Class<NewsStory>('NewsStory')({
2321 description : Entity . Text ,
2422 publishDate : Entity . Text ,
2523} ) { }
26-
27- export const mapping : Mapping = {
28- NewsStory : {
29- typeIds : [ Id . Id ( 'VKPGYGnFuaoAASiAukCVCX' ) ] ,
30- properties : {
31- name : Id . Id ( 'LuBWqZAu6pz54eiJS5mLv8' ) ,
32- publishDate : Id . Id ( 'KPNjGaLx5dKofVhT6Dfw22' ) ,
33- description : Id . Id ( 'LA1DqP5v6QAdsgLPXGF3YA' ) ,
34- } ,
35- } ,
36- Todo2 : {
37- typeIds : [ Id . Id ( '4ewpH1mPW9f2tLhaHdKKyn' ) ] ,
38- properties : {
39- name : Id . Id ( 'LuBWqZAu6pz54eiJS5mLv8' ) ,
40- checked : Id . Id ( '7zyFtwuuf9evFNZqcLSytU' ) ,
41- } ,
42- relations : {
43- assignees : Id . Id ( 'GeLe54zpz1MiMWAF8LFCCt' ) ,
44- } ,
45- } ,
46- User : {
47- typeIds : [ Id . Id ( 'KYCunro75we8KbjpsDKbm7' ) ] ,
48- properties : {
49- name : Id . Id ( 'LuBWqZAu6pz54eiJS5mLv8' ) ,
50- } ,
51- } ,
52- } ;
You can’t perform that action at this time.
0 commit comments