Comments (8)
Post your GraphQL query and field config so I can dig deeper
from graphql_api.
{
custom_entity__type_1 {
title
content_type_1 {
nid
title
custom_entity__type_2 {
title
body
date_field_with_end_date
}
}
}
}
What do you mean exactly by field config? I've renamed the fields to better explain the entity and field types.
from graphql_api.
On a simpler query, the result is the same.
{
node_article {
field_test_date_field
}
}
"debugMessage": "Expected a value of type \"String\" but received: {\"value\":\"2016-12-31 23:00:00\",\"value2\":\"2018-05-31 22:00:00\",\"timezone\":\"Europe\\/Paris\",\"timezone_db\":\"UTC\",\"date_type\":\"datetime\"}",
from graphql_api.
What do you mean exactly by field config? I've renamed the fields to better explain the entity and field types.
You add a field date, you need select field type, field name, default value, timezone handling, start/end date .... What did you use for your field?
graphql_api resolve to string when we have no clue about schema types of given field type
from graphql_api.
What did you use for your field?
I add a field of type 'date' (https://www.drupal.org/project/date). Add a field name, default value of 'now'. Timezone handling set to the same as the website. Set field to record year, month, day, hour, and minute. When using only start-date, graphql_api returns a datetime string. When set to also record an end-date, then graphql_api returns the error mentioned above.
Thank you for looking into it!
from graphql_api.
@olragon any news here for using start/end date values in date field?
from graphql_api.
@Jehu I've been busy for the last week, try to fix in tomorrow
from graphql_api.
It should be fixed by c1590e8
from graphql_api.
Related Issues (20)
- more detailed description for installation HOT 4
- Error with Composer Manager Security Advisory module during installation HOT 2
- Error on /graphqleditor HOT 5
- Error on /graphql 'Try to resolve interface to object' HOT 13
- _save mutation does not add field values to created entity HOT 3
- Problems after code changes for date fields HOT 3
- Support for link field HOT 1
- Empty results when using graphiql as non-admin. HOT 3
- Missing image and file values
- Cannot convert addressfield to GraphQL type HOT 6
- Custom Schema HOT 1
- Must have a sub selection
- Field Collections working? HOT 4
- Support for Paragraphs? HOT 2
- Error trying to convert link, name, or socialfield to GraphQL type HOT 3
- "File" value is always `null` HOT 2
- filter support / filter by url HOT 1
- Breaks on simplytest.me HOT 4
- is the development stopped - how can we finalize it? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql_api.