Skip to content

Commit

Permalink
Redeploying and renaming schemas (#19)
Browse files Browse the repository at this point in the history
* Redeploying and renaming schemas for fullstack app example to avoid confusion

* Quick type fix
  • Loading branch information
mzkrasner authored Apr 26, 2024
1 parent 9363868 commit e267e97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/fullstack-app/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ DISCORD_CLIENT_SECRET=""
CERAMIC_PRIVATE_KEY=""

# Special Aggregation Model ID (you can leave this as-is)
AGGREGATION_ID="kjzl6hvfrbw6ca1wj8fcgf6m3fb3ntmq7ppvyobaqjqg6jdsk0q45mcf9m5x4ri"
AGGREGATION_ID="kjzl6hvfrbw6cbe5nn2fktpmpbq42ouepa91pjv899k01yluz6r1zuq5phlliaq"


Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# (for reference only)

interface PointsAggregationInterface @loadModel(id: "kjzl6hvfrbw6cb6393dpd8blke5w8r7pvbl4449mxetuibcav3oab8fnxmys6d6") {
interface PointsAggregationInterface @loadModel(id: "kjzl6hvfrbw6c5m5bxe6jl7cocyxpg9b8em5w9mo3l8ws4zl5c0tu5vgapitpvk") {
id: ID!
}

type SandboxPointAggregation implements PointsAggregationInterface # Deployed model ID: kjzl6hvfrbw6ca1wj8fcgf6m3fb3ntmq7ppvyobaqjqg6jdsk0q45mcf9m5x4ri
type ContextPointAggregation implements PointsAggregationInterface
@createModel(
description: "Aggregation of multiple Ceramic Sandbox read points to an account"
description: "A simple context-based point aggregation model"
accountRelation: SET
accountRelationFields: ["recipient", "context"]
) {
Expand Down
2 changes: 1 addition & 1 deletion demo/fullstack-app/src/pages/api/createPoints.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type NextApiRequest, type NextApiResponse } from 'next'
import { contextWriter, writer } from '@/utils/context'
import type { ModelInstanceDocument } from '@composedb/types'
import { PointsContent, type AggregationContent } from '@/utils/types'
import { type PointsContent, type AggregationContent } from '@/utils/types'

interface Request extends NextApiRequest {
body: {
Expand Down

0 comments on commit e267e97

Please sign in to comment.