diff --git a/Sources/ApolloAPI/FragmentProtocols.swift b/Sources/ApolloAPI/FragmentProtocols.swift index 88e8e0d576..34267ce569 100644 --- a/Sources/ApolloAPI/FragmentProtocols.swift +++ b/Sources/ApolloAPI/FragmentProtocols.swift @@ -9,6 +9,14 @@ public protocol Fragment: SelectionSet, Deferrable { static var fragmentDefinition: StaticString { get } } +/// Extension providing default implementation for the ``Fragment`` protocol. +extension Fragment { + // Default implementation for the `fragmentDefinition` variable + public static var fragmentDefinition: StaticString { + return "" + } +} + /// A protocol representing a container for the fragments on a generated ``SelectionSet``. /// /// A generated ``FragmentContainer`` includes generated properties for converting the