0.10.3 • Published 2 years ago
@aws-amplify/amplify-api-next-alpha v0.10.3
amplify-api-next
TypeScript-first AWS AppSync Schema Builder
import {
a,
type ClientSchema,
} from '@aws-amplify/amplify-api-next-alpha';
const schema = a.schema({
Post: a.model({
id: a.id(),
title: a.string(),
comments: a.hasMany('Comment'),
}),
Comment: a.model({
id: a.id(),
content: a.string(),
post: a.belongsTo('Post'),
}),
});
export type Schema = ClientSchema<typeof schema>;
export schema
Security
See CONTRIBUTING for more information.
License
This project is licensed under the Apache-2.0 License.
0.10.1
2 years ago
0.10.2
2 years ago
0.10.3
2 years ago
0.10.0
2 years ago
0.9.0
2 years ago
0.8.0
2 years ago
0.9.1
2 years ago
0.7.2
2 years ago
0.7.1
2 years ago
0.6.2
2 years ago
0.7.4
2 years ago
0.7.3
2 years ago
0.7.0
2 years ago
0.6.1
2 years ago
0.6.0
2 years ago
0.5.0
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.2
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago