question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot resolve output-type `System.DateTime`

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
michaelstaibcommented, Jan 24, 2019

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.

1reaction
OneCyruscommented, Jan 24, 2019

oh good to know. thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found