Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
feat(schema): make memberOf and member inverses
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Mar 12, 2021
1 parent b162361 commit 7b52dde
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/schema/interface/OrganizationInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ interface OrganizationInterface {
"https://schema.org/member"
member: [LegalPersonInterface] @relation(name: "MEMBER", direction: IN)
"https://schema.org/memberOf"
memberOf: [Organization] @relation(name: "MEMBER_OF", direction: OUT)
memberOf: [Organization] @relation(name: "MEMBER", direction: OUT)
#naics
"https://schema.org/numberOfEmployees"
numberOfEmployees: Int
Expand Down
2 changes: 1 addition & 1 deletion src/schema/type/MusicGroup.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ type MusicGroup implements SearchableInterface & ThingInterface & ProvenanceEnti
"https://schema.org/member"
member: [LegalPersonInterface] @relation(name: "MEMBER", direction: IN)
"https://schema.org/memberOf"
memberOf: [Organization] @relation(name: "MEMBER_OF", direction: OUT)
memberOf: [Organization] @relation(name: "MEMBER", direction: OUT)
#naics
"https://schema.org/numberOfEmployees"
numberOfEmployees: Int
Expand Down
2 changes: 1 addition & 1 deletion src/schema/type/Organization.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ type Organization implements SearchableInterface & ThingInterface & ProvenanceEn
"https://schema.org/member"
member: [LegalPersonInterface] @relation(name: "MEMBER", direction: IN)
"https://schema.org/memberOf"
memberOf: [Organization] @relation(name: "MEMBER_OF", direction: OUT)
memberOf: [Organization] @relation(name: "MEMBER", direction: OUT)
#naics
"https://schema.org/numberOfEmployees"
numberOfEmployees: Int
Expand Down
2 changes: 1 addition & 1 deletion src/schema/type/Person.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ type Person implements SearchableInterface & ThingInterface & ProvenanceEntityIn
knowsLanguage: String
#makesOffer
"https://schema.org/memberOf"
memberOf: [Organization] @relation(name: "MEMBER_OF", direction: OUT)
memberOf: [Organization] @relation(name: "MEMBER", direction: OUT)
# "https://schema.org/naics"
# naics
"https://schema.org/nationality"
Expand Down

0 comments on commit 7b52dde

Please sign in to comment.