Skip to content

Commit d073516

Browse files
authored
Merge pull request #83 from Linq2GraphQL/fix-interface
Fixed Attribute constructor
2 parents 4831082 + 88a6953 commit d073516

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Linq2GraphQL.Client/Attributes/GraphQLMemberAttribute.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Method)]
44
public class GraphQLMemberAttribute : Attribute
55
{
6-
public GraphQLMemberAttribute(string graphQLName, bool interfaceProperty = false)
6+
public GraphQLMemberAttribute(string graphQLName)
7+
{
8+
GraphQLName = graphQLName;
9+
}
10+
11+
public GraphQLMemberAttribute(string graphQLName, bool interfaceProperty)
712
{
813
GraphQLName = graphQLName;
914
InterfaceProperty = interfaceProperty;

0 commit comments

Comments
 (0)