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

feat(schema): Use Neo4j DateTime type for created and modfied fields #154

Merged
merged 3 commits into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import walkSync from 'walk-sync'
import { resolvers } from './resolvers'
import { authenticationFieldTransformer } from './transformers/authenticationFieldTransformer'
import { subscriptionFieldTransformer } from './transformers/subscriptionFieldTransformer'
import { createdUpdatedFieldTransformer } from './transformers/createdUpdatedFieldTransformer'

/*
* Determine type definitions from which to auto generate queries and mutations
Expand Down Expand Up @@ -46,6 +47,7 @@ export const schema = transformSchema(
}),
[
subscriptionFieldTransformer,
authenticationFieldTransformer
authenticationFieldTransformer,
createdUpdatedFieldTransformer,
]
)
4 changes: 2 additions & 2 deletions src/schema/interface/ActionInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ interface ActionInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

########################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/interface/CreativeWorkInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ interface CreativeWorkInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

########################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/interface/LegalPersonInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ interface LegalPersonInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

#################################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/interface/MediaObjectInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ interface MediaObjectInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

#################################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/interface/OrganizationInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ interface OrganizationInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

########################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/interface/PerformerInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ interface PerformerInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

#################################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/interface/SearchableInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ interface SearchableInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/interface/ThingInterface.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ interface ThingInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime
}
4 changes: 2 additions & 2 deletions src/schema/type/Action.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type Action implements ThingInterface & ActionInterface & ProvenanceEntityInterf
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/AddAction.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type AddAction implements ThingInterface & ActionInterface & ProvenanceEntityInt
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

########################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/Article.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type Article implements SearchableInterface & ThingInterface & ProvenanceEntityI
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/Audience.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type Audience implements ThingInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime
########################
### ThingInterface properties ###
"https://schema.org/additionalType"
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/AudioObject.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type AudioObject implements SearchableInterface & ThingInterface & ProvenanceEnt
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/ControlAction.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type ControlAction implements ThingInterface & ActionInterface & ProvenanceEntit
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

########################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/DataDownload.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type DataDownload implements SearchableInterface & ThingInterface & ProvenanceEn
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/Dataset.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type Dataset implements SearchableInterface & ThingInterface & ProvenanceEntityI
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/DefinedTerm.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type DefinedTerm implements ThingInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

#################################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/DefinedTermSet.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type DefinedTermSet implements CreativeWorkInterface & ThingInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

#################################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/DeleteAction.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ type DeleteAction implements ThingInterface & ActionInterface & ProvenanceEntity
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

#######################
### SKOS properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/DigitalDocument.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type DigitalDocument implements SearchableInterface & ThingInterface & Provenanc
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/DigitalDocumentPermission.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type DigitalDocumentPermission implements ThingInterface & ProvenanceEntityInter
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

#################################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/EntryPoint.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type EntryPoint implements ThingInterface & ProvenanceEntityInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/Event.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type Event implements SearchableInterface & ThingInterface & ProvenanceEntityInt
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/ImageObject.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type ImageObject implements SearchableInterface & ThingInterface & ProvenanceEnt
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/Intangible.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type Intangible implements SearchableInterface & ThingInterface & ProvenanceEnti
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime
####################################
### SearchableInterface property ###
_searchScore: Float
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/ItemList.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type ItemList implements ThingInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

#################################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/ListItem.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type ListItem implements ThingInterface {
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

#################################
### ThingInterface properties ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/MediaObject.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type MediaObject implements SearchableInterface & ThingInterface & ProvenanceEnt
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/MusicAlbum.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type MusicAlbum implements SearchableInterface & ThingInterface & ProvenanceEnti
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/MusicComposition.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type MusicComposition implements SearchableInterface & ThingInterface & Provenan
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/MusicGroup.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type MusicGroup implements SearchableInterface & ThingInterface & ProvenanceEnti
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
4 changes: 2 additions & 2 deletions src/schema/type/MusicPlaylist.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ type MusicPlaylist implements SearchableInterface & ThingInterface & ProvenanceE
"http://purl.org/dc/terms/type,http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
type: String
"http://purl.org/dc/terms/created"
created: String
created: _Neo4jDateTime
"http://purl.org/dc/terms/modified"
modified: String
modified: _Neo4jDateTime

####################################
### SearchableInterface property ###
Expand Down
Loading