Skip to content

Commit

Permalink
updated graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
landofcoder committed Jul 20, 2022
1 parent e343ffd commit e16c244
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 78 deletions.
68 changes: 0 additions & 68 deletions Model/Resolver/ProductAttributeSetSellerResolver.php

This file was deleted.

1 change: 1 addition & 0 deletions Model/Resolver/Seller.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Seller extends AbstractSellerQuery implements ResolverInterface
*/
public function resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)
{
die("asdfasd");
if (!isset($value['model'])) {
throw new GraphQlInputException(__('Value must contain "model" property.'));
}
Expand Down
15 changes: 5 additions & 10 deletions etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ enum UrlRewriteEntityTypeEnum {
LOF_MARKETPLACE
}

interface ProductInterface {
seller: Seller @doc(description: "Seller who sell this product") @resolver(class: "Lof\\MarketplaceGraphQl\\Model\\Resolver\\Seller")
}

type StoreConfig {

lofmarketplace_general_enable : String @doc(description: "Query by lofmarketplace_general_enable.")
Expand Down Expand Up @@ -115,7 +119,7 @@ type Mutation {
input: SellerInput @doc(description: "Query by BecomeSellerMutationInput.")
) : MarketplaceOuput @resolver( class: "Lof\\MarketplaceGraphQl\\Model\\Resolver\\BecomeSeller") @doc(description: "Query by Mutation Become Seller.")

reviewSeller(input: ReviewInput!): Res @resolver(class: "\\Lof\\MarketplaceGraphQl\\Model\\Resolver\\ReviewSeller") @doc(description: "Review Seller")
reviewSeller(input: ReviewInput!): MarketplaceOuput @resolver(class: "\\Lof\\MarketplaceGraphQl\\Model\\Resolver\\ReviewSeller") @doc(description: "Review Seller")

customerSendMessage(input: CustomerMessageInput!): MarketplaceOuput @resolver(class:"\\Lof\\MarketplaceGraphQl\\Model\\Resolver\\Customer\\SendMessage") @doc(description: "Customer send message to seller")

Expand Down Expand Up @@ -366,15 +370,6 @@ input AddressInput {
custom_attributes: [CustomerAddressAttributeInput] @doc(description: "Deprecated: Custom attributes should not be put into container.")
}

type Res {
code: String
message: String
}

interface ProductInterface {
seller: Seller @doc(description: "Seller who sell this product") @resolver(class: "\\Lof\\MarketplaceGraphQl\\Model\\Resolver\\ProductAttributeSetSellerResolver")
}

input SellerCustomerInput {
seller: SellerInput!
customer: CustomerDataInput!
Expand Down

0 comments on commit e16c244

Please sign in to comment.