Skip to content

Commit

Permalink
test: remove auth rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilch committed Apr 10, 2024
1 parent 24c3741 commit 6290caf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ describe('build app - Android', () => {
transformerVersion: TransformerVersion.v2,
supportedPlatforms: TransformerPlatform.all,
sdl: `
type Primary @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
type Primary @model {
id: ID! @primaryKey
relatedMany: [RelatedMany] @hasMany(references: "primaryId")
relatedOne: RelatedOne @hasOne(references: "primaryId")
}
type RelatedMany @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
type RelatedMany @model {
id: ID! @primaryKey
primaryId: ID!
primary: Primary @belongsTo(references: "primaryId")
}
type RelatedOne @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
type RelatedOne @model {
id: ID! @primaryKey
primaryId: ID!
primary: Primary @belongsTo(references: "primaryId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ describe('build app - Swift', () => {
transformerVersion: TransformerVersion.v2,
supportedPlatforms: TransformerPlatform.all,
sdl: `
type Primary @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
type Primary @model {
id: ID! @primaryKey
relatedMany: [RelatedMany] @hasMany(references: "primaryId")
relatedOne: RelatedOne @hasOne(references: "primaryId")
}
type RelatedMany @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
type RelatedMany @model {
id: ID! @primaryKey
primaryId: ID!
primary: Primary @belongsTo(references: "primaryId")
}
type RelatedOne @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
type RelatedOne @model {
id: ID! @primaryKey
primaryId: ID!
primary: Primary @belongsTo(references: "primaryId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ describe('build app - JS', () => {
transformerVersion: TransformerVersion.v2,
supportedPlatforms: TransformerPlatform.all,
sdl: `
type Primary @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
type Primary @model {
id: ID! @primaryKey
relatedMany: [RelatedMany] @hasMany(references: "primaryId")
relatedOne: RelatedOne @hasOne(references: "primaryId")
}
type RelatedMany @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
type RelatedMany @model {
id: ID! @primaryKey
primaryId: ID!
primary: Primary @belongsTo(references: "primaryId")
}
type RelatedOne @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
type RelatedOne @model {
id: ID! @primaryKey
primaryId: ID!
primary: Primary @belongsTo(references: "primaryId")
Expand Down

0 comments on commit 6290caf

Please sign in to comment.