-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using HotChocolate.Types; | ||
using Nikcio.UHeadless.Content.Basics.Models; | ||
using Nikcio.UHeadless.Content.Queries; | ||
using Nikcio.UHeadless.Core.GraphQL.Queries; | ||
|
||
namespace v10.Models | ||
{ | ||
[ExtendObjectType(typeof(Query))] | ||
public class Custom2ContentQuery : ContentQuery<BasicContent<CustomProperty>, CustomProperty, BasicContentRedirect> | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using HotChocolate.Types; | ||
using HotChocolate; | ||
using Nikcio.UHeadless.Base.Properties.Commands; | ||
using Nikcio.UHeadless.Base.Properties.Factories; | ||
using Nikcio.UHeadless.Base.Properties.Models; | ||
using Nikcio.UHeadless.Basics.Properties.Models; | ||
|
||
namespace v10.Models | ||
{ | ||
public class CustomProperty : BasicProperty | ||
{ | ||
public CustomProperty(CreateProperty createProperty, IPropertyValueFactory propertyValueFactory) : base(createProperty, propertyValueFactory) | ||
{ | ||
} | ||
|
||
[GraphQLType(typeof(AnyType))] | ||
public override PropertyValue? Value => base.Value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters