Cannot resolve output-type `System.DateTime`
See original GitHub issueDescribe the bug there looks to be a regression with 0.7.0 (alpha.34) after upgrading from 0.6.11.
To Reproduce we get the following error
HotChocolate.SchemaException: 'testGraphQuery.date: Cannot resolve output-type `System.DateTime` - Type: TestGraphQuery'
with registering this simple type (c.RegisterQueryType<TestGraphQuery>()
)
public class TestGraphQuery
{
public string Version { get; set; } = "0.0.1-alpha.1";
public DateTime Date { get; set; } = DateTime.Now;
}
Expected behavior with 0.6.11 we get a Date GraphType
Desktop (please complete the following information):
- OS: Windows 10
- Version 0.7.0 (alpha 34)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Cannot resolve output-type `System.DateTime` · Issue #530
To Reproduce we get the following error HotChocolate.SchemaException: 'testGraphQuery.date: Cannot resolve output-type `System.DateTime` -.
Read more >Cannot implicitly convert type 'System.DateTime?' to ' ...
This is your problem: dt = datetime; You should check if the datetime has value (HasValue) and then try to get it, or...
Read more >PowerShell Functions and Return Types - It's All Just Electrons
When we tried to write out the value of our date variable, we got System.Object[]. Is our function no longer returning a System.DateTime...
Read more >All about Datetime - UiPath - Tutorials
6. Validate whether a Datetime is valid date. type or not. bool_date = DateTime.TryParseExact(strinput.ToString,“MM/dd/yyyy hh:mm:ss”, System ...
Read more >about Functions Advanced Parameters - PowerShell
Explains how to add parameters to advanced functions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @scottrabara, that is a good point …
but let’s create a separate section and put all migration steps there since we have another breaking change with the DataLoader.
oh good to know. thanks!