Python 试图压缩属性';日期';on<;未保存节点>;第'类;附表';:应为datetime.date对象,获取字符串
我正在尝试插入一个带有此突变的新记录,但是,我遇到了以下错误: 正在尝试对类“Schedule”的属性“start_date”进行放气:应为datetime.date对象,获得“2020-04-01” 我的开始日期定义为DateProperty() Graphql变异查询Python 试图压缩属性';日期';on<;未保存节点>;第'类;附表';:应为datetime.date对象,获取字符串,python,neo4j,neomodel,Python,Neo4j,Neomodel,我正在尝试插入一个带有此突变的新记录,但是,我遇到了以下错误: 正在尝试对类“Schedule”的属性“start_date”进行放气:应为datetime.date对象,获得“2020-04-01” 我的开始日期定义为DateProperty() Graphql变异查询 mutation { CreateSchedule( name:"schedule2", options:"{}", start_date:"20
mutation {
CreateSchedule(
name:"schedule2",
options:"{}",
start_date:"2020-04-01",
days:[0,1,2],
interval:60,
email:"", ) {
uid
}
}
我的课程表
class Schedule(StructuredNode):
uid = UniqueIdProperty()
name = StringProperty(unique_index=True)
start_date = DateProperty(format='YYYY-MM-DD')
end_date = DateProperty()
start_time = StringProperty()
end_time = StringProperty()
days = ArrayProperty()
interval = IntegerProperty()
email = EmailProperty()