-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#DLF-156 - Filtrer les produits du searchProducts via le producerId d…
…e l'url
- Loading branch information
1 parent
ce59917
commit c2b7950
Showing
11 changed files
with
65 additions
and
13 deletions.
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
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,17 @@ | ||
using Sheaft.Domain.Enums; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Sheaft.Application.Models | ||
{ | ||
public class ProducerSummaryDto | ||
{ | ||
public Guid Id { get; set; } | ||
public string Name { get; set; } | ||
public string FirstName { get; set; } | ||
public string LastName { get; set; } | ||
public string Picture { get; set; } | ||
public string Description { get; set; } | ||
public AddressDto Address { get; set; } | ||
} | ||
} |
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
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
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
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
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
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,23 @@ | ||
using HotChocolate.Types; | ||
using Sheaft.Application.Models; | ||
using Sheaft.GraphQL.Filters; | ||
|
||
namespace Sheaft.GraphQL.Types | ||
{ | ||
|
||
public class ProducerSummaryType : SheaftOutputType<ProducerSummaryDto> | ||
{ | ||
protected override void Configure(IObjectTypeDescriptor<ProducerSummaryDto> descriptor) | ||
{ | ||
descriptor.Field(c => c.Id).Type<NonNullType<IdType>>(); | ||
descriptor.Field(c => c.Picture); | ||
descriptor.Field(c => c.Description); | ||
descriptor.Field(c => c.FirstName); | ||
descriptor.Field(c => c.LastName); | ||
descriptor.Field(c => c.Name); | ||
|
||
descriptor.Field(c => c.Address) | ||
.Type<NonNullType<AddressType>>(); | ||
} | ||
} | ||
} |
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
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
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